Function at 0x40eea0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4593df
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x474454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov edi, ecx
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x824], ebx
mov edx, dword [esi]
mov dword [ebp - 4], ebx
cmp dword [edx - 0xc], ebx
je 0x40efaf
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jl 0x40ef1d
push 0x45ff54
push eax
call fcn.0043f63b
add esp, 8
cmp eax, ebx
je 0x40ef1d
sub eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x40ef61
push esi
lea eax, [ebp - 0x814]
push 0x45ff54
push eax
call fcn.00402020
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401c80
mov eax, dword [ebp - 0x814]
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
jmp 0x40efa3
push esi
lea ecx, [ebp - 0x814]
push 0x45fd60
push ecx
call fcn.00402020
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00401c80
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40efaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0x10], 0
je 0x40f08b
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jl 0x40efdb
push 0x45ff54
push eax
call fcn.0043f63b
add esp, 8
cmp eax, ebx
je 0x40efdb
sub eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x40f007
lea ecx, [ebp - 0x818]
push ecx
call fcn.0043a380
push eax
lea edx, [ebp - 0x814]
push str._rnd
mov bl, 3
push edx
mov byte [ebp - 4], bl
call fcn.00402020
add esp, 0x10
mov byte [ebp - 4], 4
jmp 0x40f031
lea ecx, [ebp - 0x818]
push ecx
call fcn.0043a380
push eax
lea edx, [ebp - 0x814]
push str.rnd
mov bl, 5
push edx
mov byte [ebp - 4], bl
call fcn.00402020
add esp, 0x10
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.00401c80
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f08b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Downloading_from:
lea ecx, [ebp - 0x814]
call fcn.00402280
push str.DownloadFile
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 7
call fcn.00402280
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
mov byte [ebp - 4], 8
call eax
add eax, 0x10
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x814]
push ecx
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x824]
push eax
mov byte [ebp - 4], 9
call fcn.00422410
lea ecx, [ebp + 0xc]
push ecx
push eax
lea edx, [ebp - 0x830]
mov bl, 0xa
push edx
mov byte [ebp - 4], bl
call fcn.00422410
add esp, 0x18
mov ecx, dword [edi + 8]
lea esi, [edi + 4]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x40f121
push 0
push eax
lea eax, [ebp - 0x818]
push eax
push esi
call fcn.004023f0
mov eax, dword [ebp - 0x830]
add eax, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f16d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f192
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x7ff
lea ecx, [ebp - 0x80f]
push 0
push ecx
mov byte [ebp - 0x810], 0
call fcn.0043ffa0
mov edx, dword [ebp - 0x820]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push edx
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToCacheFileA
test eax, eax
je 0x40f349
push str.Download_failed
lea ecx, [ebp - 0x81c]
call fcn.00402280
push str.DownloadFile
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0xc
call fcn.00402280
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
mov byte [ebp - 4], 0xd
call eax
add eax, 0x10
mov dword [ebp - 0x814], eax
lea ecx, [ebp - 0x81c]
push ecx
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x820]
mov bl, 0xe
push eax
mov byte [ebp - 4], bl
call fcn.00422410
add esp, 0xc
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x40f29f
push 2
push eax
lea edx, [ebp - 0x818]
push edx
push esi
call fcn.004023f0
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f2c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f2e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f30d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x82c]
push str.__CR__FAILED_DOWNLOAD_READ__CR__
mov ecx, esi
call fcn.00402280
jmp 0x40f4ef
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x828]
call fcn.00402280
push str.Successfully_Downloaded_to:
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 0x10
call fcn.00402280
push str.DownloadFile
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0x11
call fcn.00402280
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
mov byte [ebp - 4], 0x12
call eax
add eax, 0x10
mov dword [ebp - 0x814], eax
lea ecx, [ebp - 0x81c]
push ecx
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x824]
push eax
mov byte [ebp - 4], 0x13
call fcn.00422410
lea ecx, [ebp - 0x828]
push ecx
push eax
lea edx, [ebp - 0x820]
mov bl, 0x14
push edx
mov byte [ebp - 4], bl
call fcn.00422410
add esp, 0x18
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x40f3f5
push 0
push eax
lea eax, [ebp - 0x818]
push eax
push esi
call fcn.004023f0
mov eax, dword [ebp - 0x820]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f419
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x13
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f43e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x12
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x11
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f488
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x828]
add eax, 0xfffffff0
push eax
call fcn.004011e0
mov esi, dword [ebp - 0x82c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x828]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edi
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40f50e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fdbf
mov esp, ebp
pop ebp
ret 0x14