Function at 0x403340
Capabilities:
Check if file exists
Create http request
Delete file
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x4376e7
mov eax, dword fs:[0]
push eax
mov eax, 0x8158
call fcn.00423530
mov eax, dword [0x4466c0]
xor eax, esp
mov dword [esp + 0x8150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4466c0]
xor eax, esp
push eax
lea eax, [esp + 0x816c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8184]
mov dword [esp + 0x34], eax
mov dword [esp + 0x8174], 1
mov esi, dword [esp + 0x817c]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
push 0
push 0
push str.iexplore
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x403415
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x8174], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8174], 0xffffffff
mov eax, dword [esp + 0x8180]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40340e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40365b
push 0
push SysReAllocStringLen
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x403437
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4033bc
push 0x103
lea ecx, [esp + 0x61]
push 0
push ecx
mov byte [esp + 0x68], 0
call fcn.00422820
add esp, 0xc
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x64]
push ecx
push 5
push edi
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x44], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4034a0
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x8174], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4033d4
lea ecx, [esp + 0x38]
call fcn.0040ed60
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
mov byte [esp + 0x8180], 2
call fcn.00404300
mov byte [esp + 0x8174], 3
mov esi, dword [esp + 0x8180]
lea eax, [esi - 0x10]
push eax
call fcn.004044f0
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x5c
push esi
mov byte [esp + 0x8180], 4
call fcn.0042086a
add esp, 0xc
test eax, eax
jne 0x4034fb
or eax, 0xffffffff
jmp 0x4034fd
sub eax, esi
lea ebp, [eax + 1]
push ebp
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x8188]
call fcn.00403e80
push ebp
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x8188]
mov byte [esp + 0x817c], 5
call fcn.00403eb0
push esi
mov byte [esp + 0x8178], 6
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403551
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x8180]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404470
mov esi, dword [esp + 0x18]
push 0x43d988
push esi
call fcn.00420bfc
add esp, 8
lea ecx, [esp + 0x48]
push ecx
push 0x1021
push esi
lea ecx, [esp + 0x44]
call fcn.0040f15a
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
push 0
push 0
lea edx, [esp + 0x34]
push edx
push edi
call esi
test eax, eax
je 0x403685
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x16c]
push edx
push edi
call ebp
test eax, eax
je 0x403685
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4035e6
push eax
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x40]
call fcn.0040eaae
cmp dword [esp + 0x24], 0
jne 0x403594
lea ecx, [esp + 0x38]
call fcn.0040ecfe
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00404470
lea ecx, [esp + 0x1c]
call fcn.004013f0
lea ecx, [esp + 0x20]
call fcn.004013f0
lea ecx, [esp + 0x18]
call fcn.004013f0
lea ecx, [esp + 0x48]
call fcn.00404290
lea ecx, [esp + 0x38]
mov byte [esp + 0x8174], 1
call fcn.0040ee34
lea ecx, [esp + 0x817c]
call fcn.004013f0
lea ecx, [esp + 0x8180]
call fcn.004013f0
mov eax, 1
mov ecx, dword [esp + 0x816c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8150]
xor ecx, esp
call fcn.00420360
add esp, 0x8164
ret 0xc
lea ecx, [esp + 0x1c]
call fcn.004013f0
lea ecx, [esp + 0x20]
call fcn.004013f0
lea ecx, [esp + 0x18]
call fcn.004013f0
lea ecx, [esp + 0x48]
call fcn.00404290
lea ecx, [esp + 0x38]
mov byte [esp + 0x8174], 1
call fcn.0040ee34
lea ecx, [esp + 0x817c]
call fcn.004013f0
lea ecx, [esp + 0x8180]
call fcn.004013f0
xor eax, eax
jmp 0x40365b