Function at 0x4034c0
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.00409830
mov eax, dword [0x426990]
push ebx
mov dword [esp + 0x2768], eax
mov eax, dword [esi + 0x5c]
push edi
mov edi, 0x10
cmp eax, edi
jb 0x4034ef
mov eax, dword [esi + 0x48]
jmp 0x4034f2
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 0x403506
mov eax, dword [esi + 0x2c]
jmp 0x403509
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 0x421360
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x403649
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403564
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [esp + 0x276c]
call fcn.00408be3
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.004084ce
add esp, 4
cmp eax, 0xc8
jne 0x403649
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 0x403649
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.00408446
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 0x403629
mov eax, dword [esi + 0x48]
jmp 0x40362c
lea eax, [esi + 0x48]
push 0x42135c
push eax
call fcn.0040816c
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40365d
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov ecx, dword [esp + 0x276c]
call fcn.00408be3
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 0x40377d
jmp 0x403680
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40377d
mov edx, dword [esp + 0x14]
push edx
push 1
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00408286
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 0x403705
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 0x40375f
test edi, edi
mov ebx, dword [esi]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x403729
fadd dword [0x4221c8]
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jge 0x40373b
fadd dword [0x4221c8]
fdivp st(1)
fmul dword [0x4221c4]
call fcn.0040a0c4
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 0x403680
test edi, edi
mov eax, dword [esi]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x403791
fadd dword [0x4221c8]
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jge 0x4037a3
fadd dword [0x4221c8]
fdivp st(1)
mov dword [esp + 8], eax
fmul dword [0x4221c4]
call fcn.0040a0c4
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.0040831e
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esi + 0x5c], 0x10
jb 0x4037df
mov eax, dword [esi + 0x48]
jmp 0x4037e2
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.00408be3
pop edi
pop ebx
mov esp, ebp
pop ebp
ret