Function at 0x4031f3
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x421cf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x42d9d0]
xor eax, esp
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x130], eax
call fcn.00401340
mov dword [esp + 0x13c], 0
call fcn.00417ea8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13c], 1
call fcn.00417ea8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x70
mov byte [esp + 0x140], 2
mov dword [esp + 0x20], esi
call fcn.0041d234
test eax, eax
je 0x403266
push 0x70
push eax
lea ecx, [esp + 0x1c]
call fcn.00402470
mov ebp, dword [esp + 0x14]
push edi
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esi + 0x364]
push edi
push 0
push 0x423db8
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x66
call fcn.0041d234
test eax, eax
je 0x4032a7
push 0x66
push eax
lea ecx, [esp + 0x18]
call fcn.00402470
push 0x423e64
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00402c90
add esp, 0xc
mov eax, dword [eax]
add esi, 0x7ec
push eax
mov ecx, esi
mov byte [esp + 0x144], 3
call fcn.0041b540
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x140], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ebp
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov edi, eax
test edi, edi
jl 0x403323
push 0x423e44
mov ecx, esi
call fcn.0041b540
jmp 0x4033c4
call fcn.00417ea8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
push edi
push 0
push 0x1300
mov byte [esp + 0x15c], 4
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x403383
mov ecx, dword [esp + 0xc]
push ecx
push edi
lea edx, [esp + 0x1c]
push 0x423e20
push edx
call fcn.00402c70
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x403396
push edi
lea ecx, [esp + 0x18]
push 0x423de8
push ecx
call fcn.00402c70
add esp, 0xc
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.0041b540
lea eax, [edi - 0x10]
mov byte [esp + 0x140], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4033c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x140], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x4033eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x13c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebp
jg 0x40340f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call fcn.00401000
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040a861
add esp, 0x138
ret