Function at 0x459a20
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov ecx, dword [esi + 0x920]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x459cc5
mov ebx, dword [esi + 0xa80]
test ebx, ebx
je 0x459adb
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.0046de70
movzx eax, byte [esi + 0xa6c]
shr al, 5
and eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xa8c]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00459400
test eax, eax
je 0x459d0a
mov ebx, dword [ebx + 4]
mov dword [esi + 0xa8c], eax
test ebx, ebx
jne 0x459a71
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx + 0xa80]
mov dword [esp], eax
call fcn.00442060
mov dword [ebx + 0xa80], 0
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.0046ded0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.0046de70
mov eax, ebx
mov ebx, dword [ebx + 0xa8c]
test ebx, ebx
je 0x459c10
mov eax, dword [eax + 0x920]
mov dword [esp], 0
mov ebp, ebx
mov dword [esp + 0x40], eax
call sub.msvcrt.dll_time
mov dword [esp + 0x30], eax
sar eax, 0x1f
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x400]
mov dword [esp + 0x38], eax
nop
lea esi, [esi]
mov eax, dword [ebp]
test eax, eax
je 0x459b76
xor edi, edi
lea esi, [esi]
mov edx, dword [eax + 0x1c]
cmp dword [esp + 0x34], edx
mov esi, dword [eax]
mov ecx, dword [eax + 0x18]
jg 0x459b66
jl 0x459b6e
cmp dword [esp + 0x30], ecx
jbe 0x459b6e
or ecx, edx
jne 0x459ca0
mov edi, eax
test esi, esi
mov eax, esi
jne 0x459b50
add ebp, 4
cmp dword [esp + 0x38], ebp
jne 0x459b40
mov edi, dword [esp + 0x40]
mov esi, 0x5e71cc
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
jne 0x459d30
mov dword [esp], 1
call dword [0x536444]
mov dword [esp + 8], 0x88
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str._Netscape_HTTP_Cookie_File_n_https:__curl.haxx.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
mov dword [esp + 0x30], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x408]
test eax, eax
je 0x459c10
shl eax, 2
mov dword [esp], eax
call dword [0x536390]
test eax, eax
mov esi, eax
je 0x459f69
mov byte [esp + 0x5f], 1
jmp 0x459d99
mov esi, dword [esp + 0x50]
mov dword [esp], esi
call dword [0x53638c]
cmp byte [esp + 0x5f], 0
jne 0x459c10
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x54]
test eax, eax
je 0x459c7d
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x8c]
mov ebp, dword [ebx + 0xa8c]
test eax, eax
je 0x459c31
cmp dword [eax + 0x58], ebp
je 0x459c7d
test ebp, ebp
je 0x459c7d
mov eax, dword [ebp + 0x400]
lea edi, [ebp + 0x400]
mov esi, ebp
mov dword [esp], eax
call dword [0x53638c]
lea esi, [esi]
mov eax, dword [esi]
test eax, eax
je 0x459c6d
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax]
call fcn.004573b0
test ebx, ebx
mov eax, ebx
jne 0x459c60
add esi, 4
cmp edi, esi
jne 0x459c50
mov dword [esp], ebp
call dword [0x53638c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x84], 2
mov dword [esp + 0x80], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0046ded0
test edi, edi
je 0x459cc0
mov dword [edi], esi
sub dword [ebx + 0x408], 1
call fcn.004573b0
jmp 0x459b70
mov dword [ebp], esi
jmp 0x459ca6
mov edx, dword [esp + 0x54]
test edx, edx
je 0x459ce9
mov eax, dword [esi + 0xa80]
test eax, eax
je 0x459ce9
mov dword [esp], eax
call fcn.00442060
mov dword [esi + 0xa80], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.0046de70
jmp 0x459c10
mov eax, dword [ebx]
mov dword [esp + 4], str.ignoring_failed_cookie_init_for__s_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0045fe80
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x459a71
jmp 0x459aaf
mov eax, dword [esp + 0x40]
mov dword [esp + 4], 0x5e72b9
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov dword [esp + 0x30], eax
je 0x459f69
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x88
mov dword [esp + 4], 1
mov dword [esp], str._Netscape_HTTP_Cookie_File_n_https:__curl.haxx.se_docs_http_cookies.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x408]
test eax, eax
je 0x459c04
shl eax, 2
mov dword [esp], eax
call dword [0x536390]
test eax, eax
mov esi, eax
je 0x459f5d
mov byte [esp + 0x5f], 0
mov ecx, dword [esp + 0x48]
xor edi, edi
nop
mov eax, dword [ecx]
test eax, eax
je 0x459dd2
mov edx, dword [eax + 0x14]
test edx, edx
je 0x459dc5
lea esi, [esi]
mov dword [esi + edi*4], eax
mov eax, dword [eax]
lea edx, [edi + 1]
test eax, eax
je 0x459dd0
mov edi, edx
mov edx, dword [eax + 0x14]
test edx, edx
jne 0x459db0
mov eax, dword [eax]
mov edx, edi
test eax, eax
jne 0x459dbc
lea esi, [esi]
mov edi, edx
add ecx, 4
cmp ebp, ecx
jne 0x459da0
mov dword [esp + 0xc], 0x457430
mov dword [esp + 8], 4
mov eax, dword [ebx + 0x408]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_qsort
test edi, edi
je 0x459bf4
xor ebp, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], edi
jmp 0x459eba
test edi, edi
mov ebx, str.unknown
mov dword [esp + 0x4c], 0x5e715c
mov ecx, 0x5e7162
cmove edi, ebx
cmp byte [eax + 0x32], 0
mov ebx, 0x5e7162
mov eax, str.HttpOnly_
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp], str._s_s_s_t_s_t_s_t_s_t_I64d_t_s_t_s
cmove eax, ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x20], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x10], ebx
call fcn.00468fa0
test eax, eax
mov ebx, eax
je 0x459f35
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
add ebp, 1
mov dword [esp + 4], 0x5e72d5
mov dword [esp], eax
call fcn.00469130
mov dword [esp], ebx
call dword [0x53638c]
cmp ebp, dword [esp + 0x58]
je 0x459bf0
mov eax, dword [esp + 0x50]
mov ebx, 0x5e7162
mov edi, 0x5e715c
mov eax, dword [eax + ebp*4]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x1c]
test edx, edx
mov dword [esp + 0x44], esi
mov esi, 0x5e7157
cmove edx, ebx
cmp byte [eax + 0x30], 0
mov ebx, dword [eax + 4]
mov dword [esp + 0x38], ebx
mov ebx, dword [eax + 0x18]
cmove esi, edi
mov edi, 0x5e7078
mov dword [esp + 0x48], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x40], ebx
test esi, esi
cmove esi, edi
cmp byte [eax + 0x24], 0
mov edi, dword [eax + 0x14]
je 0x459e12
test edi, edi
mov dword [esp + 0x4c], 0x5e7157
je 0x459f8c
cmp byte [edi], 0x2e
mov ecx, 0x5e7162
mov ebx, 0x5e7208
cmove ebx, ecx
mov ecx, ebx
jmp 0x459e29
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
mov dword [esp + 4], str._n_Fatal_libcurl_error_n
mov dword [esp], eax
call fcn.00469130
mov dword [esp], esi
call dword [0x53638c]
cmp byte [esp + 0x5f], 0
jne 0x459f69
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x920]
mov dword [esp + 4], str.WARNING:_failed_to_save_cookies_in__s_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.0045fe80
jmp 0x459c10
mov edi, str.unknown
mov ecx, 0x5e7162
jmp 0x459e29