Function at 0x405620
Capabilities:
Check http status code
Connect to http server
Create http request
Create process on windows
Create process suspended
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x4f8]
sub esp, 0x4f8
push 0xffffffffffffffff
push 0x43f075
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4535c4]
xor eax, ebp
mov dword [ebp + 0x4f4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x500]
mov edi, dword [eax]
mov eax, dword [edi*4 + 0x457628]
mov ebx, ecx
mov ecx, dword [eax + 8]
push edi
push ecx
push 0x448354
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
call fcn.00428db1
add esp, 0xc
push 0
push 0
push 0
push 0
push str.Test
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebx + edi*4 + 0x790], eax
test eax, eax
jne 0x4056ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi*4 + 0x457628]
push eax
mov eax, dword [edx + 8]
push eax
push str._s___Failed_in_call_to_InternetOpen__Error:_d_n
call fcn.00428db1
add esp, 0xc
jmp 0x405cb7
push 0x405ef0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4056ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi*4 + 0x457628]
mov edx, dword [ecx + 8]
push eax
push edx
push str._s___Failed_in_call_to_InternetSetStatusCallback__Error:_d_n
call fcn.00428db1
add esp, 0xc
jmp 0x405cb7
mov eax, dword [edi*4 + 0x457628]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
push str._s___serverPath___s__suffix___s_n
call fcn.00428db1
mov ecx, dword [edi*4 + 0x457628]
mov eax, dword [ecx + 0x24]
mov edx, dword [ebx + edi*4 + 0x790]
add esp, 0x10
push 0
push 0
push 3
push 0x44899b
push 0x44899b
push 0x50
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + edi*4 + 0x7e0], eax
test eax, eax
jne 0x405779
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi*4 + 0x457628]
mov ecx, dword [eax + 8]
push ecx
push str._s___Failed_in_call_to_InternetConnect__Error:_d_n
call fcn.00428db1
add esp, 0xc
jmp 0x405cb7
mov eax, dword [edi*4 + 0x457628]
mov dword [ebp - 0x38], 0x4480cc
mov dword [ebp - 0x34], 0
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x28]
push edx
push eax
lea ecx, [ebp + 0x400]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebx + edi*4 + 0x7e0]
add esp, 0x10
push ebx
push 0x84400000
lea edx, [ebp - 0x38]
push edx
push 0
push 0
lea eax, [ebp + 0x400]
push eax
push 0x4480d0
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + edi*4 + 0x830], eax
test eax, eax
jne 0x405802
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi*4 + 0x457628]
push eax
mov eax, dword [edx + 8]
push eax
push str._s___Failed_in_call_to_HttpOpenRequest__Error:_d_n
call fcn.00428db1
add esp, 0xc
jmp 0x405cb7
push str.HttpSendRequest
call fcn.00428db1
mov ecx, dword [ebx + edi*4 + 0x830]
add esp, 4
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40594b
push str.HttpSendRequest
call fcn.00428db1
mov ecx, dword [ebx + edi*4 + 0x830]
add esp, 4
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x4d4]
push eax
push 0x13
push ecx
mov dword [ebp - 0x24], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40596f
lea edx, [ebp + 0x4d4]
push edx
call fcn.00428e76
mov esi, eax
mov eax, dword [edi*4 + 0x457628]
mov ecx, dword [eax + 8]
push esi
push ecx
push str._s___statusCode_:__d_n
call fcn.00428db1
add esp, 0x10
cmp esi, 0x197
je 0x4058a1
cmp esi, 0x191
jne 0x405993
mov edx, dword [edi*4 + 0x457628]
mov eax, dword [edx + 8]
push eax
push str._s___internetReadFile___n
call fcn.00428db1
add esp, 8
lea esp, [esp]
mov eax, dword [ebx + edi*4 + 0x830]
lea ecx, [ebp - 0x28]
push ecx
push 0x32
lea edx, [ebp + 0x480]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x28], 0
jne 0x4058c0
mov ecx, dword [ebx + edi*4 + 0x830]
push 0
push 7
push 0x2eee
push ecx
mov ecx, ebx
call fcn.00401000
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x4059b9
mov edx, dword [edi*4 + 0x457628]
mov eax, dword [edx + 8]
push eax
push str._s___goto_resend
call fcn.00428db1
push str.HttpSendRequest
call fcn.00428db1
mov ecx, dword [ebx + edi*4 + 0x830]
add esp, 0xc
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40582d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi*4 + 0x457628]
push eax
mov eax, dword [edx + 8]
push eax
push str._s___Failed_in_call_to_HttpSendRequest__Error:_d_n
call fcn.00428db1
add esp, 0xc
jmp 0x405cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi*4 + 0x457628]
mov edx, dword [ecx + 8]
push eax
push edx
push str._s___Failed_in_call_to_HttpQueryInfo_for_HTTP_query_status_code__Error:_d_n
call fcn.00428db1
add esp, 0xc
jmp 0x405cb7
cmp esi, 0xc8
je 0x4059b9
mov eax, dword [edi*4 + 0x457628]
mov ecx, dword [eax + 8]
push esi
push ecx
push str._s___Failed_to_retrieve_a_HTTP_200_status__Status_Code:_d_n
call fcn.00428db1
add esp, 0xc
jmp 0x405cb7
mov esi, 0x6c
call fcn.004067f0
mov ecx, dword [ebx + edi*4 + 0x830]
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x4b4]
push eax
push 5
push ecx
mov dword [ebp - 0x24], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, 0x74
call fcn.004067f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [edi*4 + 0x457628]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 8]
push eax
push edi
push str._d___s__
mov esi, 0x400
call fcn.00428db1
add esp, 0xc
lea ecx, [ecx]
mov eax, dword [ebx + edi*4 + 0x830]
lea ecx, [ebp - 0x20]
push ecx
push esi
lea edx, [ebp]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi*4 + 0x457628]
mov edx, dword [ecx + 8]
push eax
push edx
push str._s___Failed_in_call_to_InternetReadFile__Error:_d_n
call fcn.00428db1
add esp, 0xc
push 0x72
xor ecx, ecx
mov edi, ebx
call fcn.00407110
jmp 0x405cb7
cmp dword [ebp - 0x20], 0
je 0x405ab9
lea ecx, [ebp - 0x2c]
call fcn.00413fef
mov dword [ebp - 4], 0
lea eax, [edi + 0x8b]
shl eax, 4
mov byte [ebp - 4], 1
mov edx, dword [eax + ebx]
mov edx, dword [edx + 0x38]
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
call fcn.00414007
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
test eax, eax
jne 0x405a20
mov eax, dword [edi*4 + 0x457628]
mov ecx, dword [eax + 8]
push ecx
push edi
push str._d__s_
call fcn.00428db1
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00401630
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.00401630
lea ecx, [ebp - 0x28]
call fcn.00401630
mov byte [ebp - 4], 5
mov eax, dword [edi*4 + 0x457628]
lea edx, [eax + 0xc]
push edx
add eax, 0x1c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407f30
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00408460
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi*4 + 0x457628]
add eax, 0x50
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408460
push 0x448604
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00407ff0
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 7
call fcn.00407f30
add esp, 0x18
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00408460
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405baa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0x8b]
shl ecx, 4
mov edx, dword [ecx + ebx]
mov eax, dword [edx + 0x4c]
add ecx, ebx
call eax
push 0x40
lea ecx, [ebp - 0x8c]
push 0
push ecx
call fcn.00429840
mov edx, dword [edi*4 + 0x457628]
mov dword [ebp - 0x90], 0x44
mov eax, dword [edx + 8]
push eax
push str._s__
call fcn.00428db1
mov edi, dword [ebp - 0x28]
add esp, 0x14
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebx + 0x20]
inc dword [0x4575cc]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4f4]
xor ecx, ebp
call fcn.00428549
add ebp, 0x4f8
mov esp, ebp
pop ebp
ret 4