Function at 0x403b20
Capabilities:
Check http status code
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2768
call fcn.0040c4b0
mov eax, dword [0x429990]
push ebx
mov dword [esp + 0x2768], eax
mov eax, dword [esi + 0x5c]
push edi
mov edi, 0x10
cmp eax, edi
jb 0x403b4f
mov eax, dword [esi + 0x48]
jmp 0x403b52
lea eax, [esi + 0x48]
mov edx, dword [esi]
push eax
push 0xb
mov ecx, esi
call dword [edx + 8]
cmp dword [esi + 0x40], edi
jb 0x403b66
mov eax, dword [esi + 0x2c]
jmp 0x403b69
lea eax, [esi + 0x2c]
push 0
push 0x4000000
push 0
push 0
push str.HTTP_1.0
push eax
mov eax, dword [esi + 8]
push 0x424420
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x403ca9
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403bc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [esp + 0x276c]
call fcn.0040b693
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x50]
push edx
push 0x13
mov dword [esp + 0x30], edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
call edi
lea eax, [esp + 0x48]
push eax
call fcn.0040abce
add esp, 4
cmp eax, 0xc8
jne 0x403ca9
xor ecx, ecx
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], ecx
mov dword [esp + 0x35], ecx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x41], ecx
mov word [esp + 0x45], cx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x4f], cl
mov byte [esp + 0x30], 0
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x30]
push ecx
push 5
push ebx
mov dword [esp + 0x38], 0x20
call edi
test eax, eax
je 0x403ca9
mov byte [esp + 0x58], 0
xor eax, eax
mov ecx, 0x9c3
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x28]
xor edi, edi
push edx
mov dword [esp + 0x10], edi
call fcn.0040ab46
mov dword [esp + 0x14], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], edi
mov eax, dword [esi + 0x5c]
add esp, 4
cmp eax, 0x10
jb 0x403c89
mov eax, dword [esi + 0x48]
jmp 0x403c8c
lea eax, [esi + 0x48]
push 0x42441c
push eax
call fcn.0040a86d
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x403cbd
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov ecx, dword [esp + 0x276c]
call fcn.0040b693
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push 0x2710
lea ecx, [esp + 0x60]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403ddd
jmp 0x403ce0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403ddd
mov edx, dword [esp + 0x14]
push edx
push 1
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0040a987
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x80]
add edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 8], edi
mov dword [esi + 0x80], ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esi + 0x78]
sub eax, edx
cmp eax, 0xbb8
jb 0x403d65
mov ebx, dword [esi + 0x80]
mov edi, edx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esi + 0x6c]
mov ecx, eax
mov eax, ebx
sub eax, edx
imul eax, eax, 0x3e8
sub ecx, edi
xor edx, edx
div ecx
add edi, 0xbb8
mov dword [esi + 0x6c], ebx
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x78], edi
mov edi, dword [esp + 8]
mov dword [esi + 0x70], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esi + 0x74]
cmp eax, 0xc8
jb 0x403dbf
test edi, edi
mov ebx, dword [esi]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x403d89
fadd dword [0x425360]
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jge 0x403d9b
fadd dword [0x425360]
fdivp st(1)
fmul dword [0x42535c]
call fcn.0040cd44
push eax
push 0xa
mov ecx, esi
call dword [ebx + 4]
mov eax, dword [esi + 0x74]
mov ebx, dword [esp + 0x18]
add eax, 0xc8
mov dword [esi + 0x74], eax
lea eax, [esp + 0xc]
push eax
push 0x2710
lea ecx, [esp + 0x60]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403ce0
test edi, edi
mov eax, dword [esi]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x403df1
fadd dword [0x425360]
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jge 0x403e03
fadd dword [0x425360]
fdivp st(1)
mov dword [esp + 8], eax
fmul dword [0x42535c]
call fcn.0040cd44
push eax
mov eax, dword [esp + 0xc]
push 0xa
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x14]
push eax
call fcn.0040aa1f
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esi + 0x5c], 0x10
jb 0x403e3f
mov eax, dword [esi + 0x48]
jmp 0x403e42
lea eax, [esi + 0x48]
mov edx, dword [esi]
push eax
push 0xc
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [esp + 0x276c]
mov al, 1
call fcn.0040b693
pop edi
pop ebx
mov esp, ebp
pop ebp
ret