Function at 0x401df0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x41d8a6
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.00410600
mov eax, dword [0x425a94]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425a94]
xor eax, esp
push eax
lea eax, [esp + 0x1090]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10a4]
mov ebp, dword [esp + 0x10a0]
mov esi, ecx
mov ecx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [ecx - 0xc]
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x1c], 0xfffffffe
cmp eax, ebx
jne 0x401e60
lea eax, [ebx - 2]
jmp 0x402107
push 6
push str.IceBox
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004028e0
mov dword [esp + 0x1098], ebx
mov esi, dword [esi]
push esi
lea esi, [esp + 0x50]
call fcn.004025b0
mov byte [esp + 0x1098], 1
movzx esi, word [esp + 0x84]
mov eax, 0x10
cmp dword [esp + 0x64], eax
jb 0x401ec0
mov edx, dword [esp + 0x50]
mov dword [esp + 0x14], edx
jmp 0x401ec8
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
jae 0x401ed6
lea eax, [esp + 0x34]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x40206f
mov edx, dword [esp + 0x14]
push ebx
push 0x4400000
push 3
push ebx
push ebx
push esi
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
mov dword [esp + 0x28], edx
cmp edx, ebx
je 0x40206f
cmp dword [esp + 0x80], 0x10
mov ecx, dword [esp + 0x6c]
jae 0x401f24
lea ecx, [esp + 0x6c]
mov eax, dword [ebp]
push ebx
push 0x20000000
lea esi, [esp + 0x1c]
push esi
push 0x42141d
push str.HTTP_1.0
push ecx
push eax
push edx
mov dword [esp + 0x34], 0x421410
mov dword [esp + 0x38], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x402049
lea eax, [esp + 0x24]
push eax
call fcn.00402780
test al, al
je 0x402032
mov eax, dword [edi]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x401f84
mov ecx, esi
push ecx
mov ecx, edi
call fcn.00401aa0
mov eax, dword [edi]
mov edx, dword [esp + 0x2c]
push esi
push eax
push ebx
push ebx
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x402032
push 0xfff
lea eax, [esp + 0x91]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x98], bl
call fcn.0040faa0
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x94]
push edx
push eax
call esi
cmp eax, 1
jne 0x40201b
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x40201b
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00402420
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x94]
push eax
push ecx
call esi
cmp eax, 1
je 0x401fe3
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov dword [esp + 0x1c], 0xfffffffa
cmp dword [eax - 0xc], ebx
je 0x402032
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x40204f
push eax
call esi
mov dword [esp + 0x2c], ebx
jmp 0x40204f
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40205e
push eax
call esi
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x402075
push eax
call esi
mov dword [esp + 0x24], ebx
jmp 0x402075
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, 0x10
cmp dword [esp + 0x80], ebp
jb 0x402090
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004030dd
add esp, 4
mov edi, 0xf
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x64], ebp
jb 0x4020b7
mov edx, dword [esp + 0x50]
push edx
call fcn.004030dd
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp eax, ebx
je 0x4020d2
push eax
call esi
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4020e1
push eax
call esi
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4020f0
push eax
call esi
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x48], ebp
jb 0x402103
mov eax, dword [esp + 0x34]
push eax
call fcn.004030dd
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.0040d0ab
add esp, 0x1088
ret