Function at 0x40a590
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x421150]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x228], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x226]
push ecx
call fcn.0040d9b0
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040de9d
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.0040de9d
add esp, 4
lea ecx, [esi + eax + 2]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d2a9
add esp, 4
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a68f
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040baa0
add esp, 8
mov dword [ebp - 0x230], 0xe
jmp 0x40aaff
mov edx, dword [ebp - 0x18]
shl edx, 1
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040d9b0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b320
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jge 0x40a6f5
mov ecx, dword [ebp - 0x22c]
and ecx, 0xffff
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x17
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b820
add esp, 0x10
jmp 0x40aaff
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0040de9d
add esp, 4
mov edx, dword [ebp + 0x14]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.USER32.dll_CharPrevW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x40a77a
push 0x41d0d0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b370
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jge 0x40a77a
mov ecx, dword [ebp - 0x22c]
and ecx, 0xffff
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x17
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b820
add esp, 0x10
jmp 0x40aaff
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b370
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jge 0x40a7cc
mov ecx, dword [ebp - 0x22c]
and ecx, 0xffff
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x17
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b820
add esp, 0x10
jmp 0x40aaff
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov dword [ebp - 0x20], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d2a9
add esp, 4
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a829
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040baa0
add esp, 8
mov dword [ebp - 0x230], 0xe
jmp 0x40aaff
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
jne 0x40a8ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7a
jne 0x40a8ed
mov edx, dword [ebp - 4]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x240]
push eax
call fcn.0040e455
add esp, 4
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d2a9
add esp, 4
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a8c5
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040baa0
add esp, 8
mov dword [ebp - 0x230], 0xe
jmp 0x40aaff
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
jne 0x40a8ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40a91c
mov edx, dword [ebp - 0x10]
push edx
push 0x17
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b820
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x230], ecx
jmp 0x40aaff
push 0x100
lea edx, [ebp - 0x228]
push edx
push 0x1b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409bc0
cmp eax, 1
jne 0x40a96c
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b590
add esp, 8
mov dword [ebp - 0x230], 0x642
jmp 0x40aaff
push 0x208
call fcn.0040d2a9
add esp, 4
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x234], eax
mov dword [ebp - 8], 0x104
cmp dword [ebp - 0x234], 0
jne 0x40a9bf
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040baa0
add esp, 8
mov dword [ebp - 0x230], 0xe
jmp 0x40aaff
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x258]
call fcn.00409d40
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x258]
call fcn.00409d80
mov ecx, dword [ebp + 0xc]
call fcn.00409b50
movzx ecx, al
test ecx, ecx
je 0x40aa37
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b590
add esp, 8
mov dword [ebp - 0x230], 0x642
jmp 0x40aaff
cmp dword [ebp - 0x22c], 0
jge 0x40aa6a
mov eax, dword [ebp - 4]
push eax
push 0x1c
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b820
add esp, 0x10
mov dword [ebp - 0x230], 2
jmp 0x40aaff
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0040ae90
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x800b0001
jne 0x40aaae
push 0x15
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b610
add esp, 0xc
mov dword [ebp - 0x230], 0x78
jmp 0x40aaff
cmp dword [ebp - 0x14], 0
je 0x40aade
mov edx, dword [ebp - 0x234]
push edx
push 0x16
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409b00
push eax
call fcn.0040b820
add esp, 0x10
mov dword [ebp - 0x230], 4
jmp 0x40aaff
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040abf0
add esp, 0x10
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x10], 0
je 0x40ab1d
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0040e455
add esp, 4
cmp dword [ebp - 4], 0
je 0x40ab3b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.0040e455
add esp, 4
cmp dword [ebp - 0x234], 0
je 0x40ab6c
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.0040e455
add esp, 4
mov eax, dword [ebp - 0x230]
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0040de10
mov esp, ebp
pop ebp
ret