Function at 0x6b448de0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
cmp dword [esi + 0x520], 0
je 0x6b448efe
cmp dword [esi + 0xaec], 0
je 0x6b448e0e
push esi
call fcn.6b446cf0
add esp, 4
push 2
push 2
push esi
call fcn.6b47b6c0
add esp, 0xc
mov eax, dword [esi + 0x6e0]
test eax, eax
je 0x6b448f2c
mov ebx, eax
mov eax, dword [esi + 0x520]
mov dword [esp + 0xc], eax
mov esi, 0x7fffffff
mov edi, 0xffffffff
push 0
call dword [sym.imp.msvcrt.dll_time]
add esp, 4
mov edx, eax
sar edx, 0x1f
mov ebp, dword [ebx + 0x418]
mov dword [esp], ebx
mov ecx, dword [ebx + 0x41c]
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x10], edx
sbb edx, ecx
jge 0x6b448f39
xor ebp, edi
xor ecx, esi
or ecx, ebp
je 0x6b448f39
push dword [esp + 0xc]
push 0x6b729a67
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
je 0x6b44904a
lea edi, [esp + 0x2f]
push 9
push edi
push dword [esp + 0x54]
call fcn.6b475280
add esp, 0xc
mov esi, 2
test eax, eax
jne 0x6b4492a0
push edi
push dword [esp + 0x10]
push 0x6b729ad2
call sym.libcurl.dll_curl_maprintf
add esp, 0xc
test eax, eax
je 0x6b44925c
push 0x6b729adc
mov dword [esp + 8], eax
push eax
call fcn.6b44a550
add esp, 8
test eax, eax
je 0x6b449263
mov ebx, eax
mov dword [esp + 0x18], 0
mov al, 1
mov dword [esp + 0x1c], eax
jmp 0x6b44906d
test edi, edi
je 0x6b448f1f
mov eax, dword [esi + 0xaec]
test eax, eax
je 0x6b448f1f
push eax
call sym.libcurl.dll_curl_slist_free_all
add esp, 4
mov dword [esi + 0xaec], 0
push 2
push 2
push esi
call fcn.6b47b6c0
add esp, 0xc
test edi, edi
jne 0x6b4492cd
jmp 0x6b4492f2
mov eax, dword [esp]
mov dword [eax + 0x418], edi
mov dword [eax + 0x41c], esi
xor ecx, ecx
mov ebx, dword [0x6b83acf4]
jmp 0x6b448f71
mov ecx, dword [esp + 8]
inc ecx
cmp ecx, 0x100
je 0x6b448e7c
mov eax, dword [esp]
mov dword [esp + 8], ecx
mov ebp, dword [eax + ecx*4]
test ebp, ebp
je 0x6b448f60
xor edi, edi
jmp 0x6b448f96
mov edi, esi
test ebp, ebp
je 0x6b448f60
mov esi, ebp
mov ebp, dword [ebp]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, eax
or edx, ecx
je 0x6b448fc0
cmp eax, dword [esp + 0x14]
mov edx, ecx
sbb edx, dword [esp + 0x10]
jge 0x6b448fc0
test edi, edi
je 0x6b448fe7
mov dword [edi], ebp
mov eax, dword [esp]
jmp 0x6b448ff1
mov edx, eax
or edx, ecx
je 0x6b448f90
mov edi, dword [esp]
cmp eax, dword [edi + 0x418]
mov edx, ecx
sbb edx, dword [edi + 0x41c]
jge 0x6b448f90
mov dword [edi + 0x418], eax
mov dword [edi + 0x41c], ecx
jmp 0x6b448f90
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov dword [eax + ecx*4], ebp
dec dword [eax + 0x404]
push dword [esi + 0x20]
call dword [ebx]
add esp, 4
push dword [esi + 0x14]
call dword [ebx]
add esp, 4
push dword [esi + 0xc]
call dword [ebx]
add esp, 4
push dword [esi + 0x10]
call dword [ebx]
add esp, 4
push dword [esi + 4]
call dword [ebx]
add esp, 4
push dword [esi + 8]
call dword [ebx]
add esp, 4
push dword [esi + 0x28]
call dword [ebx]
add esp, 4
push dword [esi + 0x24]
call dword [ebx]
add esp, 4
push esi
call dword [ebx]
add esp, 4
test ebp, ebp
jne 0x6b448f96
jmp 0x6b448f60
mov dword [esp + 0x1c], 0
mov al, 1
mov dword [esp + 0x18], eax
push 1
call dword [0x6b7287c8]
add esp, 4
mov ebx, eax
mov dword [esp + 4], 0
mov esi, dword [esp + 0x4c]
push ebx
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.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [esp]
mov eax, dword [eax + 0x404]
test eax, eax
je 0x6b449215
mov ecx, dword [0x6b83acf0]
shl eax, 2
push eax
push 1
call dword [ecx]
add esp, 8
test eax, eax
je 0x6b449279
mov edi, eax
xor esi, esi
xor eax, eax
jmp 0x6b4490c8
inc eax
cmp eax, 0x100
je 0x6b4490e2
mov ecx, dword [esp]
mov ecx, dword [ecx + eax*4]
jmp 0x6b4490d2
mov ecx, dword [ecx]
test ecx, ecx
je 0x6b4490c0
cmp dword [ecx + 0x14], 0
je 0x6b4490d0
mov dword [edi + esi*4], ecx
inc esi
jmp 0x6b4490d0
push 0x6b449310
push 4
push esi
push edi
call sub.msvcrt.dll_qsort
add esp, 0x10
test esi, esi
je 0x6b449206
xor eax, eax
mov dword [esp + 0x20], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edi + eax*4]
mov ebx, dword [edx + 0x14]
mov ecx, dword [edx + 0x38]
mov dword [esp + 0x14], ecx
cmp dword [edx + 0x2c], 0
mov dword [esp], 0x6b729a13
mov ebp, 0x6b729a1b
je 0x6b449151
mov dword [esp], 0x6b729a0e
test ebx, ebx
je 0x6b44914c
cmp byte [ebx], 0x2e
mov ebp, 0x6b729ac8
mov ecx, 0x6b729a1b
cmove ebp, ecx
jmp 0x6b449151
mov ebp, 0x6b729a1b
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], eax
test ebx, ebx
mov eax, 0x6b729aca
cmove ebx, eax
mov dword [esp + 8], ebx
mov ecx, dword [edx + 0xc]
test ecx, ecx
mov eax, 0x6b729a19
cmove ecx, eax
mov dword [esp + 0x28], ecx
mov ebp, dword [edx + 8]
test ebp, ebp
mov eax, 0x6b729a1b
cmove ebp, eax
cmp dword [edx + 0x30], 0
mov ebx, 0x6b729a0e
mov eax, 0x6b729a13
cmove ebx, eax
cmp dword [esp + 0x14], 0
mov ecx, str.HttpOnly_
mov eax, 0x6b729a1b
cmove ecx, eax
push ebp
push dword [edx + 4]
push dword [edx + 0x1c]
push dword [edx + 0x18]
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x30]
push ecx
push str._s_s_s_t_s_t_s_t_s_t_I64d_t_s_t_s
call sym.libcurl.dll_curl_maprintf
add esp, 0x2c
test eax, eax
je 0x6b44926a
mov ebp, eax
push eax
push 0x6b729b63
mov ebx, dword [esp + 0x28]
push ebx
call sym.libcurl.dll_curl_mfprintf
add esp, 0xc
push ebp
mov eax, dword [0x6b83acf4]
call dword [eax]
add esp, 4
mov eax, dword [esp + 0x24]
inc eax
cmp esi, eax
jne 0x6b449110
mov eax, dword [0x6b83acf4]
push edi
call dword [eax]
add esp, 4
mov esi, dword [esp + 0x4c]
cmp byte [esp + 0x1c], 0
je 0x6b44924c
push ebx
call sub.msvcrt.dll_fclose
add esp, 4
push dword [esp + 0xc]
push dword [esp + 8]
call fcn.6b475310
add esp, 8
test eax, eax
je 0x6b44924c
push dword [esp + 4]
call sub.msvcrt.dll__unlink
add esp, 4
mov esi, 0x17
jmp 0x6b449292
mov eax, dword [0x6b83acf4]
push dword [esp + 4]
call dword [eax]
add esp, 4
jmp 0x6b4492c5
mov esi, 0x1b
jmp 0x6b4492a0
mov esi, 0x17
jmp 0x6b449292
push edi
mov eax, dword [0x6b83acf4]
call dword [eax]
add esp, 4
mov ebx, dword [esp + 0x20]
test ebx, ebx
sete al
or al, byte [esp + 0x18]
mov esi, 0x1b
jne 0x6b449292
push ebx
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [0x6b83acf4]
push dword [esp + 4]
call dword [eax]
add esp, 4
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 0x520]
push esi
mov esi, eax
call sym.libcurl.dll_curl_easy_strerror
add esp, 4
push eax
push edi
push str.WARNING:_failed_to_save_cookies_in__s:__s
push esi
call fcn.6b4767f0
add esp, 0x10
mov edi, dword [esp + 0x50]
test edi, edi
je 0x6b4492f2
mov ecx, dword [esi + 0x78]
test ecx, ecx
mov eax, dword [esi + 0x6e0]
je 0x6b4492df
cmp eax, dword [ecx + 0x5c]
je 0x6b4492f2
push eax
call fcn.6b448310
add esp, 4
mov dword [esi + 0x6e0], 0
push 2
push esi
call fcn.6b47b700
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret