Function at 0x407cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a618
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x487264]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push esi
push esi
push esi
push 1
mov dword [ebp - 0x3c], ecx
push str.UrlDown
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], edx
call fcn.00432069
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], esi
call fcn.0042e475
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407d41
push 0x80004005
call fcn.00401130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
call fcn.0042e475
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407d6e
push 0x80004005
call fcn.00401130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
xor eax, eax
xor ecx, ecx
cmp edi, esi
sete cl
push esi
push 4
lea edx, [ebp - 0x38]
push edx
push 2
mov byte [ebp - 4], 2
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov dword [ebp - 0x80], 0x10
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], 0x7d0
call fcn.004319a4
push esi
push 4
lea eax, [ebp - 0x78]
push eax
push 3
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x78], 1
call fcn.004319a4
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
push ecx
push ebx
mov byte [ebp - 4], 3
call fcn.00432665
mov eax, dword [ebp - 0x68]
cmp eax, 3
je 0x407e56
cmp eax, 0x100b
je 0x407e56
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408041
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x28]
sub eax, 3
neg eax
push esi
sbb eax, eax
push esi
push ecx
and eax, 0x800000
add eax, 0x400000
push eax
push edx
lea ecx, [ebp - 0x5c]
call fcn.00432c63
mov ecx, dword [ebp - 0x2c]
mov edi, eax
mov eax, dword [ebp - 0x68]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0x801000
add eax, 0x84000000
push eax
push esi
push esi
push 1
push esi
push ecx
push 1
mov ecx, edi
mov dword [ebp - 0x30], edi
call fcn.00432f30
push esi
push esi
mov ebx, eax
push esi
push esi
mov ecx, ebx
mov dword [ebp - 0x48], ebx
call fcn.004325e7
cmp eax, esi
jne 0x407f09
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407edd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408041
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call fcn.00431a5d
cmp dword [ebp - 0x84], 0xc8
jne 0x408188
push esi
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x24]
push eax
push 5
mov ecx, ebx
mov byte [ebp - 0x24], 0
call fcn.00431a16
lea ecx, [ebp - 0x24]
push ecx
call fcn.00444a71
mov edx, dword [ebp - 0x3c]
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x34], esi
mov dword [edx], esi
cmp edi, esi
jne 0x407fc4
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
lea ecx, [ebp - 0x5c]
call fcn.004326f5
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408041
cmp dword [ebp - 0x64], esi
je 0x407feb
push edi
call fcn.00444431
add esp, 4
mov dword [ebp - 0x40], eax
cmp eax, esi
je 0x408003
mov ecx, dword [ebp - 0x6c]
push edi
push esi
push eax
mov dword [ecx], eax
call fcn.004441f0
add esp, 0xc
jmp 0x408003
mov edx, dword [ebp - 0x70]
push 0x45ea00
push edx
call fcn.004450ed
add esp, 8
mov dword [ebp - 0x44], eax
cmp eax, esi
je 0x408016
push 0x10000
call fcn.00425270
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x408072
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
lea ecx, [ebp - 0x5c]
call fcn.004326f5
lea ecx, [ebp - 0x2c]
call fcn.00401440
lea ecx, [ebp - 0x28]
call fcn.00401440
lea ecx, [ebp - 0x5c]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443a17
mov esp, ebp
pop ebp
ret
xor esi, esi
push 0x10000
push esi
push edi
call fcn.004441f0
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
add esp, 0xc
push 0x10000
push edi
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
je 0x4080ea
add dword [ebp - 0x34], esi
cmp dword [ebp - 0x64], 0
jne 0x4080b1
mov eax, dword [ebp - 0x44]
push eax
push esi
push 1
push edi
call fcn.00445266
add esp, 0x10
jmp 0x4080c9
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x40]
push esi
push edi
push edx
call fcn.004452f0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add dword [eax], esi
xor eax, eax
add dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4080e2
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push ecx
push edx
call eax
add esp, 8
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x34], eax
jne 0x408070
push edi
call fcn.00425265
mov eax, dword [ebp - 0x44]
add esp, 4
test eax, eax
je 0x408103
push eax
call fcn.00444fad
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
mov dword [ebp - 4], 2
call eax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x408121
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x5c]
call fcn.004326f5
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40814c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40816f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.004327f9
mov eax, 1
jmp 0x408052
cmp ebx, esi
je 0x4081a3
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
mov dword [ebp - 0x48], esi
cmp edi, esi
je 0x4081be
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x5c]
call fcn.004326f5
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408041