Function at 0x403630
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.0040c070
mov eax, dword [0x428990]
push ebx
mov dword [esp + 0x2768], eax
mov eax, dword [esi + 0x5c]
push edi
mov edi, 0x10
cmp eax, edi
jb 0x40365f
mov eax, dword [esi + 0x48]
jmp 0x403662
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 0x403676
mov eax, dword [esi + 0x2c]
jmp 0x403679
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 0x423398
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4037b9
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4036d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [esp + 0x276c]
call fcn.0040b25c
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.0040a65e
add esp, 4
cmp eax, 0xc8
jne 0x4037b9
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 0x4037b9
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.0040a5d6
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 0x403799
mov eax, dword [esi + 0x48]
jmp 0x40379c
lea eax, [esi + 0x48]
push 0x423394
push eax
call fcn.0040a2fd
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4037cd
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov ecx, dword [esp + 0x276c]
call fcn.0040b25c
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 0x4038ed
jmp 0x4037f0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4038ed
mov edx, dword [esp + 0x14]
push edx
push 1
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0040a417
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 0x403875
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 0x4038cf
test edi, edi
mov ebx, dword [esi]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x403899
fadd dword [0x4242e0]
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jge 0x4038ab
fadd dword [0x4242e0]
fdivp st(1)
fmul dword [0x4242dc]
call fcn.0040c904
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 0x4037f0
test edi, edi
mov eax, dword [esi]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x403901
fadd dword [0x4242e0]
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jge 0x403913
fadd dword [0x4242e0]
fdivp st(1)
mov dword [esp + 8], eax
fmul dword [0x4242dc]
call fcn.0040c904
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.0040a4af
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esi + 0x5c], 0x10
jb 0x40394f
mov eax, dword [esi + 0x48]
jmp 0x403952
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.0040b25c
pop edi
pop ebx
mov esp, ebp
pop ebp
ret