Function at 0x418cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 0x524]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x418ec2
mov edx, dword [edi + 0x690]
test edx, edx
je 0x418ce3
mov dword [esp], edi
call sym._Curl_cookie_loadfiles
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], edi
call sym._Curl_share_lock
mov ebp, dword [edi + 0x698]
mov ebx, dword [edi + 0x524]
test ebp, ebp
je 0x418d15
mov eax, dword [ebp + 0x408]
test eax, eax
jne 0x418d4f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418d37
mov eax, dword [edi + 0x6c]
mov edx, dword [edi + 0x698]
test eax, eax
je 0x418d2f
cmp dword [eax + 0x58], edx
je 0x418d37
mov dword [esp], edx
call sym._Curl_cookie_cleanup
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 2
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._Curl_share_unlock
mov eax, ebp
call sym._remove_expired
mov eax, dword [ebp + 0x408]
test eax, eax
je 0x418d15
shl eax, 2
mov dword [esp], eax
call dword [0x45e814]
mov esi, eax
test eax, eax
je 0x418e97
cmp byte [ebx], 0x2d
jne 0x418f4d
cmp byte [ebx + 1], 0
jne 0x418f4d
mov dword [esp], 1
call dword [0x45ea48]
mov byte [esp + 0x1b], 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
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
xor ebx, ebx
mov dword [esp + 8], 0x88
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
call sym._fwrite
mov edx, ebp
lea ecx, [ebp + 0x400]
lea esi, [esi]
mov eax, dword [edx]
test eax, eax
je 0x418df2
lea esi, cs:[esi]
nop
cmp dword [eax + 0x14], 0
je 0x418dec
mov dword [esi + ebx*4], eax
add ebx, 1
mov eax, dword [eax]
test eax, eax
jne 0x418de0
add edx, 4
cmp edx, ecx
jne 0x418dd0
mov dword [esp + 0xc], sym._cookie_sort_ct
mov dword [esp + 8], 4
mov eax, dword [ebp + 0x408]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._qsort
xor edx, edx
test ebx, ebx
je 0x418f28
mov dword [esp + 0x1c], edi
mov edi, edx
jmp 0x418e59
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
add edi, 1
mov dword [esp + 4], 0x462a62
mov dword [esp], eax
call sym._curl_mfprintf
mov dword [esp], ebp
call dword [0x45e810]
cmp edi, ebx
je 0x418f24
mov eax, dword [esi + edi*4]
call sym._get_netscape_format
mov ebp, eax
test eax, eax
jne 0x418e2d
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], str._n_Fatal_libcurl_error_n
mov dword [esp], ebx
call sym._curl_mfprintf
cmp byte [esp + 0x1b], 0
jne 0x418e97
mov dword [esp], esi
call dword [0x45e810]
mov dword [esp], ebx
call sym._fclose
mov eax, dword [edi + 0x524]
mov dword [esp + 4], str.WARNING:_failed_to_save_cookies_in__s_n
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._Curl_infof
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x418d1d
jmp 0x418d37
mov edx, dword [esp + 0x10]
test edx, edx
je 0x418f07
mov eax, dword [edi + 0x690]
test eax, eax
je 0x418f7c
mov dword [esp], eax
call sym._curl_slist_free_all
mov dword [edi + 0x690], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], edi
call sym._Curl_share_lock
jmp 0x418d1d
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], edi
call sym._Curl_share_lock
jmp 0x418d37
mov edi, dword [esp + 0x1c]
mov dword [esp], esi
call dword [0x45e810]
cmp byte [esp + 0x1b], 0
jne 0x418d15
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._fclose
jmp 0x418d15
mov dword [esp + 4], 0x4629bc
mov dword [esp], ebx
call sym._fopen
mov byte [esp + 0x1b], 0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x418d9f
mov dword [esp], esi
call dword [0x45e810]
jmp 0x418e97
mov dword [esp + 8], 2
mov dword [esp + 4], 2
mov dword [esp], edi
call sym._Curl_share_lock
jmp 0x418d1d