Function at 0x402e60
Capabilities:
Check http status code
Connect to http server
Create http request
Delete file
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4296d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
call fcn.00425ea4
mov eax, dword [eax + 0x10]
xor edi, edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x1d8], eax
je 0x402ec5
cmp dword [esi + 0x1e4], edi
jne 0x402fc6
push 0x402e40
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x402ee3
push edi
push 0x91
mov ecx, esi
call fcn.00402920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1e4], edi
je 0x402efb
mov ecx, dword [esi + 0x1c]
push edi
push edi
push 0x8001
push ecx
jmp 0x403237
mov eax, dword [esi + 0x78]
cmp dword [eax - 0xc], edi
push esi
push edi
je 0x402f2b
mov ebx, dword [esi + 0x1d4]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x1c4]
push ebx
push ecx
mov ecx, dword [esi + 0x1d8]
push eax
xor eax, eax
mov ax, word [esi + 0x1d0]
push eax
push edx
push ecx
jmp 0x402f4c
mov edx, dword [esi + 0x1d4]
mov eax, dword [esi + 0x1c4]
push edx
mov edx, dword [esi + 0x1d8]
xor ecx, ecx
mov cx, word [esi + 0x1d0]
push edi
push edi
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 0x1dc], eax
je 0x402fa0
cmp dword [esi + 0x1e4], edi
jne 0x402fc6
mov ecx, esi
call fcn.00401520
mov eax, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1dc]
push esi
push 0x84400000
lea ecx, [ebp - 0x38]
push ecx
push edi
push edi
push eax
push edi
push edx
mov dword [ebp - 0x38], 0x42b830
mov dword [ebp - 0x34], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x1e0], eax
jne 0x402fbe
push edi
push 0x92
mov ecx, esi
call fcn.00402920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1e4], edi
je 0x402fd6
mov eax, dword [esi + 0x1c]
push edi
push edi
push 0x8001
push eax
jmp 0x403237
mov ebx, dword [sym.imp.WININET.dll_InternetErrorDlg]
lea esp, [esp]
mov ecx, dword [esi + 0x1e0]
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
push edi
je 0x402fa1
mov ecx, dword [esi + 0x1e0]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x64]
push eax
push 0x13
push ecx
mov dword [ebp - 0x1c], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403140
lea edx, [ebp - 0x64]
push edx
call fcn.0040f3cd
add esp, 4
cmp eax, 0x197
je 0x403040
cmp eax, 0x191
jne 0x40315d
lea ebx, [ebx]
mov edx, dword [esi + 0x1e0]
lea eax, [ebp - 0x18]
push eax
push 0x32
lea ecx, [ebp - 0xb8]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x18], edi
jne 0x403040
mov ecx, dword [esi + 0x1e0]
mov eax, dword [esi + 0x1c]
push edi
push 7
push 0x2eee
push ecx
push eax
call ebx
cmp eax, 0x2f00
je 0x402fe0
push 0x8f
mov ecx, esi
call fcn.00401fa0
mov ecx, dword [esi + 0x1e0]
push edi
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x84]
push eax
push 5
push ecx
mov dword [ebp - 0x1c], 0x20
xor ebx, ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4030d6
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 0x18], 1
call fcn.0040f3cd
add esp, 4
mov ebx, eax
push ebx
mov ecx, esi
call fcn.004014f0
push 0x97
mov ecx, esi
call fcn.00401fa0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea esp, [esp]
mov edx, dword [esi + 0x1e0]
lea eax, [ebp - 0x14]
push eax
mov eax, 0x400
push eax
lea ecx, [ebp - 0x4b8]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403186
push eax
push 0x95
mov ecx, esi
call fcn.00402920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x93
mov ecx, esi
call fcn.00402030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xc8
je 0x40307f
push eax
push 0x94
mov ecx, esi
call fcn.00402920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403207
mov eax, dword [esi + 0x1e4]
test eax, eax
jne 0x4031f2
lea ecx, [ebp - 0x44]
call fcn.0041ff80
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x1ec]
push edx
lea ecx, [esi + 0x1ec]
lea edx, [ebp - 0x4b8]
mov dword [ebp - 4], 0
push edx
mov byte [ebp - 4], 1
call dword [eax + 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ff96
mov eax, dword [ebp - 0x14]
push ebx
add edi, eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
push edx
push edi
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00402a00
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403207
mov eax, dword [esi + 0x1e4]
test eax, eax
je 0x403100
mov eax, dword [esi + 0x1ec]
lea ecx, [esi + 0x1ec]
call dword [eax + 0x4c]
mov eax, dword [esi + 0x1e4]
test eax, eax
je 0x40322a
mov ecx, dword [esi + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x8001
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret