Function at 0x40c560
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, 0x1434
call fcn.004149d0
mov eax, dword [0x427550]
mov edx, dword [ebp + 0x18]
push ebx
xor eax, ebp
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x1438], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], ecx
push edi
lea ecx, [ebx + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
call fcn.004063b0
push esi
mov ecx, ebx
call fcn.0040c120
test eax, eax
jne 0x40c5cb
mov eax, SysReAllocStringLen
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x18
push 1
mov ecx, ebx
call fcn.0040c250
test eax, eax
je 0x40c924
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x40c8f1
mov eax, dword [ebx + 0x24]
push 0
push 0x4600010
push 0x4270b4
push 0
push 0
push eax
mov eax, dword [ebx + 8]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebx + 0xc], eax
je 0x40c914
mov eax, dword [ebp + 0x1c]
test eax, eax
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], esi
je 0x40c636
push str.InPost
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
mov dword [esp + 0x10], eax
mov esi, eax
push esi
call fcn.004122a7
mov edx, eax
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x1c]
add esp, 4
test eax, eax
mov dword [esp + 0x18], edx
je 0x40c69d
push str.InPost
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x18]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, str.InPost
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
push str.InPost
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, dword [esp + 0x18]
add edi, eax
mov edx, eax
jmp 0x40c6a3
mov esi, dword [esp + 0x14]
mov edi, edx
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
push edx
push str.Content_Type:_application_x_www_form_urlencoded
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebx + 0xc]
push eax
push str.Content_Type:_application_x_www_form_urlencoded
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40c722
mov eax, dword [esp + 0x18]
push eax
call fcn.00412c1d
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x50], eax
call fcn.0040b720
mov edi, dword [ebx + 0x50]
xor eax, eax
cmp edi, 0x2ee2
setne al
dec eax
and eax, reloc.OLEAUT32.dll_SysStringLen
dec eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00412c1d
mov ecx, dword [ebx + 0xc]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
add esp, 4
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0x20000013
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 4
call esi
test eax, eax
je 0x40c914
mov eax, dword [esp + 0x28]
cmp eax, 0xc8
je 0x40c7f8
cmp eax, 0x12c
jbe 0x40c91d
cmp eax, 0x12e
ja 0x40c91d
xor eax, eax
push eax
mov byte [esp + 0x34], 0
mov ecx, 0x100
lea edi, [esp + 0x35]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0x21
push ecx
mov dword [esp + 0x34], 0x400
call esi
test eax, eax
je 0x40c914
lea edx, [esp + 0x30]
push edx
lea ecx, [ebx + 0x48]
call fcn.00408ca0
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x40c8f1
mov esi, dword [esp + 0x1c]
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x438]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esi], eax
jmp 0x40c830
mov eax, dword [ebx + 0x40]
test eax, eax
mov dword [esp + 0x24], 0
jne 0x40c8f1
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x24]
push edx
push 0xfff
lea eax, [esp + 0x440]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40c914
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40c8ae
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
add edx, ecx
cmp edx, eax
ja 0x40c8ae
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x438]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov edx, dword [eax]
add esi, ecx
add edx, ecx
mov dword [esp + 0x10], esi
mov edi, esi
mov dword [eax], edx
mov esi, eax
jmp 0x40c8b0
add dword [esi], ecx
test ecx, ecx
ja 0x40c830
mov byte [edi + 1], 0
mov ecx, dword [ebx + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0xc], 0
cmp edx, dword [esi]
sbb eax, eax
and eax, reloc.OLEAUT32.dll_SysStringLen
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x18
mov ecx, ebx
call fcn.0040b720
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x50], eax
mov ecx, ebx
call fcn.0040b720
mov ecx, dword [esp + 0x143c]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret 0x18