Function at 0x406c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a538
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x487264]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 1
push str.UrlDown
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], ebx
call fcn.00432069
xor eax, eax
cmp dword [ebp + 0xc], ebx
push ebx
sete al
push 4
lea ecx, [ebp - 0x2c]
push ecx
mov esi, 0x7d0
push 2
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
call fcn.004319a4
push ebx
push 4
lea edx, [ebp - 0x2c]
push edx
push 5
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
call fcn.004319a4
push ebx
push 4
lea eax, [ebp - 0x2c]
push eax
push 6
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
call fcn.004319a4
push ebx
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 7
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x2c], esi
call fcn.004319a4
push ebx
push 4
lea edx, [ebp - 0x34]
push edx
push 8
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x34], esi
call fcn.004319a4
mov eax, dword [ebp + 0x14]
push 0x10000
mov dword [eax], ebx
call fcn.00425270
mov edi, eax
add esp, 4
mov dword [ebp - 0x3c], edi
cmp edi, ebx
jne 0x406d44
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.004327f9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov esi, 0x84000002
lea esp, [esp]
push 0
push 0
push esi
push 1
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00432ca7
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00431a5d
cmp dword [ebp - 0x38], 0xc8
jne 0x406eb1
mov esi, dword [ebp - 0x14]
push 0
lea edx, [ebp - 0x18]
push edx
push 5
mov ecx, esi
call fcn.00431a34
mov eax, dword [ebp - 0x18]
test eax, eax
ja 0x406da1
mov byte [ebp - 4], 0
jmp 0x406ed0
cmp dword [ebp - 0x24], 0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], 0
je 0x406e47
push eax
call fcn.00444431
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x406dd8
mov ecx, dword [ebp + 0x10]
push ebx
push 0
push eax
mov dword [ecx], eax
call fcn.004441f0
add esp, 0xc
test ebx, ebx
jbe 0x406e90
push 0x10000
push 0
push edi
call fcn.004441f0
add esp, 0xc
mov eax, ebx
cmp ebx, 0x10000
jb 0x406dff
mov eax, 0x10000
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x34]
push edi
mov ecx, esi
call eax
mov esi, eax
test esi, esi
jbe 0x406e8d
mov eax, dword [ebp + 0x18]
add dword [ebp - 0x1c], esi
test eax, eax
je 0x406e27
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call eax
add esp, 8
cmp dword [ebp - 0x24], 0
jne 0x406e68
mov eax, dword [ebp - 0x20]
push eax
push esi
push 1
push edi
call fcn.00445266
add esp, 0x10
sub ebx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
jmp 0x406dd8
mov edx, dword [ebp + 0xc]
push 0x45ea00
push edx
call fcn.004450ed
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x406dd8
mov byte [ebp - 4], al
jmp 0x406ed0
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x28]
push esi
push edi
push ecx
call fcn.004452f0
add dword [ebx], esi
mov ebx, dword [ebp - 0x2c]
add esp, 0xc
sub ebx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
jmp 0x406dd8
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406ea0
push eax
call fcn.00444fad
add esp, 4
mov byte [ebp - 4], 0
test ebx, ebx
jne 0x406ed0
mov dword [ebp - 0x30], 1
jmp 0x406ed0
mov dword [ebp - 4], 0
jmp 0x406d50
push edi
call fcn.00425265
add esp, 4
test esi, esi
je 0x406ef9
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
lea ecx, [ebp - 0x50]
call fcn.004326f5
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.004327f9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret