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

Disassembly:
push 0xffffffffffffffff
push 0x436854
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.004237e0
mov eax, dword [0x4456d0]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4456d0]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
push 0x43c920
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], 0
call fcn.00403e50
mov ebp, 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x1088], ebp
call fcn.004103a5
lea ecx, [esp + 0x64]
mov byte [esp + 0x1088], 2
call fcn.004103a5
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1088], 3
call fcn.004103a5
push 0x43c920
lea ecx, [esp + 0x18]
mov byte [esp + 0x108c], 4
call fcn.00403e50
push 0x43c72c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x108c], 5
call fcn.00403e50
mov byte [esp + 0x1088], 6
mov eax, dword [esi + 0xcc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403470
push 0x12
push str._check_update2.php
lea ecx, [esp + 0x20]
call fcn.00403470
push 0
push 0
push 0
push 0
push str.HTTP
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x38], edi
jne 0x4024cf
push 0x43c920
mov ecx, ebx
call fcn.00403e50
mov byte [esp + 0x1088], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1088], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40246d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1088], 3
call fcn.00410577
lea ecx, [esp + 0x64]
mov byte [esp + 0x1088], 2
call fcn.00410577
lea ecx, [esp + 0x50]
mov byte [esp + 0x1088], 1
call fcn.00410577
mov byte [esp + 0x1088], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x4027f3
mov esi, dword [esi + 0xd0]
push ebp
push 0
push 3
push 0
push 0
push 0x50
push esi
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
jne 0x40250e
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x30]
push 0x43c920
mov ecx, esi
call fcn.00403e50
jmp 0x402742
mov ecx, dword [esp + 0x18]
push ebp
push 0x4000100
push 0x446950
push 0
push 0
push ecx
push 0x43c750
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
jne 0x402579
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [esp + 0x30]
push 0x43c920
mov ecx, esi
call fcn.00403e50
mov byte [esp + 0x1088], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x402762
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40271a
push 0x1001
xor edi, edi
lea ecx, [esp + 0x7c]
push edi
xor ebx, ebx
push ecx
mov dword [esp + 0x38], 0
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x28], ebx
call fcn.00422f30
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0x1000
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4026b2
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4025f5
cmp dword [esp + 0x2c], eax
je 0x4026b2
sub dword [esp + 0x2c], 1
jmp 0x402661
cmp eax, 0x1000
ja 0x4026a4
add esi, eax
test ebp, ebp
je 0x40260f
push ebp
call fcn.0040452a
add esp, 4
push esi
call fcn.0040452f
push ebx
mov ebp, eax
push edi
push ebp
call fcn.004275e0
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [ebx + ebp]
push ecx
call fcn.004275e0
add esp, 0x1c
test edi, edi
je 0x402645
push edi
call fcn.0040452a
add esp, 4
lea edx, [esi + 1]
push edx
call fcn.0040452f
push esi
mov edi, eax
push ebp
push edi
call fcn.004275e0
add esp, 0x10
mov byte [edi + esi], 0
mov ebx, esi
push 0x1001
lea eax, [esp + 0x7c]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.00422f30
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4025dc
jmp 0x4026b2
push eax
push str.InternetReadFile_returns_wrong_read_count.__return___d_
call fcn.00421143
add esp, 8
push edi
lea ecx, [esp + 0x18]
call fcn.00403f50
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4026ef
push str.Not_Found
push eax
call fcn.00420e53
add esp, 8
test eax, eax
je 0x4026ef
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4026ef
push 0x43c920
lea ecx, [esp + 0x18]
call fcn.00403f50
test ebp, ebp
je 0x4026fc
push ebp
call fcn.0040452a
add esp, 4
test edi, edi
je 0x402709
push edi
call fcn.0040452a
add esp, 4
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov ebp, 1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004041a0
mov esi, dword [esp + 0x34]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x1088], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x20], ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40276e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1088], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402796
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1088], 3
call fcn.00410577
lea ecx, [esp + 0x64]
mov byte [esp + 0x1088], 2
call fcn.00410577
lea ecx, [esp + 0x50]
mov byte [esp + 0x1088], 1
call fcn.00410577
mov byte [esp + 0x1088], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.0042058e
add esp, 0x1078
ret