Function at 0x442960
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x3c]
mov esi, dword [edi + 0x564]
push 2
push 2
push edi
call fcn.0041af90
add esp, 0xc
movzx ecx, byte [esp + 0x40]
test esi, esi
je 0x442cd4
mov esi, dword [edi + 0x564]
mov ebx, dword [edi + 0x6f0]
mov dword [esp], 0
mov dword [esp + 4], 0
test ebx, ebx
je 0x442cd4
mov ecx, ebx
call fcn.00441af0
movzx eax, byte [esi]
sub eax, 0x2d
jne 0x4429c1
movzx eax, byte [esi + 1]
neg eax
test eax, eax
je 0x4429e8
lea eax, [esp + 4]
mov ecx, esp
push eax
push ecx
push esi
push edi
call fcn.00447ef0
add esp, 0x10
test eax, eax
je 0x4429fe
mov dword [esp + 0xc], eax
xor ebx, ebx
jmp 0x442c3b
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp], eax
mov cl, 1
mov dword [esp + 8], ecx
jmp 0x442a09
mov eax, dword [esp]
mov dword [esp + 8], 0
push eax
push 1
push 0x83
push str._Netscape_HTTP_Cookie_File_n_https:__curl.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, dword [ebx + 0x108]
test eax, eax
je 0x442bbd
shl eax, 2
push str.cookie.c
push 0x677
push eax
push 1
call fcn.00405d00
add esp, 0x10
mov dword [esp + 0xc], 0x1b
test eax, eax
je 0x442c33
mov edi, eax
mov dword [esp + 0x18], esi
xor esi, esi
xor eax, eax
jmp 0x442a66
inc eax
cmp eax, 0x3f
je 0x442a82
mov ecx, dword [ebx + eax*4]
jmp 0x442a72
mov ecx, dword [ecx]
test ecx, ecx
je 0x442a60
cmp dword [ecx + 0x14], 0
je 0x442a70
mov dword [edi + esi*4], ecx
inc esi
jmp 0x442a70
push 0x442d20
push 4
push esi
push edi
call sub.api_ms_win_crt_utility_l1_1_0.dll_qsort
add esp, 0x10
test esi, esi
je 0x442ba2
xor eax, eax
nop dword [eax]
mov ecx, dword [edi + eax*4]
mov edx, dword [ecx + 0x14]
cmp byte [ecx + 0x20], 1
mov dword [esp + 0x1c], eax
jne 0x442ad0
test edx, edx
je 0x442ae2
cmp byte [edx], 0x2e
mov ebx, 0x95836e
mov eax, 0x9581a9
cmove ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x442aec
mov dword [esp + 0x10], 0x9581a1
mov dword [esp + 0x14], 0x9581a9
jmp 0x442af4
xor edx, edx
mov dword [esp + 0x14], 0x9581a9
mov dword [esp + 0x10], 0x95819c
test edx, edx
mov eax, 0x958370
cmove edx, eax
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0xc]
test edx, edx
mov eax, 0x9581a7
cmove edx, eax
mov dword [esp + 0x20], edx
mov ebp, dword [ecx + 8]
test ebp, ebp
mov eax, 0x9581a9
cmove ebp, eax
cmp byte [ecx + 0x21], 0
mov edx, 0x9581a1
mov ebx, 0x95819c
cmovne edx, ebx
cmp byte [ecx + 0x23], 0
mov ebx, str.HttpOnly_
cmovne eax, ebx
push ebp
push dword [ecx + 4]
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
push edx
push dword [esp + 0x34]
push dword [esp + 0x28]
push dword [esp + 0x40]
push dword [esp + 0x34]
push eax
push str._s_s_s_t_s_t_s_t_s_t_lld_t_s_t_s
call fcn.0040b490
add esp, 0x2c
test eax, eax
je 0x442c20
mov ebx, eax
push eax
push 0x9583fc
push dword [esp + 8]
call fcn.0040b510
add esp, 0xc
push str.cookie.c
push 0x690
push ebx
call fcn.00405f90
add esp, 0xc
mov eax, dword [esp + 0x1c]
inc eax
cmp esi, eax
jne 0x442aa0
push str.cookie.c
push 0x693
push edi
call fcn.00405f90
add esp, 0xc
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 8]
test bl, bl
je 0x442bce
mov ecx, dword [esp + 4]
jmp 0x442cbc
push str.cookie.c
push 0x697
push dword [esp + 8]
call fcn.00406350
add esp, 0xc
mov dword [esp], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x442cba
push esi
push eax
call fcn.00414d20
add esp, 8
mov ecx, dword [esp + 4]
test eax, eax
je 0x442cbc
push ecx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
add esp, 4
mov dword [esp + 0xc], 0x17
jmp 0x442c3b
push str.cookie.c
push 0x68b
push edi
call fcn.00405f90
add esp, 0xc
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 8]
mov eax, dword [esp]
test eax, eax
je 0x442c59
test bl, bl
jne 0x442c59
push str.cookie.c
push 0x6aa
push eax
call fcn.00406350
add esp, 0xc
push str.cookie.c
push 0x6ab
push dword [esp + 0xc]
call fcn.00405f90
add esp, 0xc
test edi, edi
movzx ecx, byte [esp + 0x40]
je 0x442cd4
test byte [edi + 0x6eb], 0x20
je 0x442cd4
mov eax, dword [edi + 0xd20]
test eax, eax
je 0x442c91
cmp dword [eax + 4], 0
jle 0x442cd4
mov esi, dword [edi + 0x564]
push dword [esp + 0xc]
call fcn.0041ba00
add esp, 4
push eax
push esi
push str.WARNING:_failed_to_save_cookies_in__s:__s
push edi
call fcn.004439c0
movzx ecx, byte [esp + 0x50]
add esp, 0x10
jmp 0x442cd4
xor ecx, ecx
push str.cookie.c
push 0x6a5
push ecx
call fcn.00405f90
add esp, 0xc
movzx ecx, byte [esp + 0x40]
test cl, cl
je 0x442d03
mov ecx, dword [edi + 0x90]
mov eax, dword [edi + 0x6f0]
test ecx, ecx
je 0x442cf0
cmp eax, dword [ecx + 0x98]
je 0x442d03
push eax
call fcn.004424a0
add esp, 4
mov dword [edi + 0x6f0], 0
push 2
push edi
call fcn.0041afd0
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret