Function at 0x406f5b
Capabilities:
Check http status code
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1428
call fcn.0041c5d0
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1414], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1428], eax
mov eax, dword [ebp + 0x14]
push esi
lea esi, [edi + 0x4c]
mov dword [ebp - 0x1424], eax
mov ebx, ecx
call fcn.00407fcf
push dword [ebp - 0x1414]
push edi
call fcn.00407522
test eax, eax
jne 0x406fb3
mov eax, SysReAllocStringLen
jmp 0x40723a
mov ecx, edi
call fcn.004060bc
test eax, eax
je 0x407237
xor esi, esi
cmp dword [edi + 0x44], esi
je 0x406fda
push 2
pop ebx
mov esi, edi
call fcn.004079e5
mov eax, ebx
jmp 0x40723a
mov eax, dword [edi + 0x28]
push esi
push 0x4600010
push 0x430e3c
push esi
push esi
push eax
push str.POST
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0xc], eax
cmp eax, esi
jne 0x40700e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x54], eax
or ebx, 0xffffffff
jmp 0x406fcc
push dword [ebp + 0x10]
call fcn.00412242
pop ecx
push dword [ebp + 0x10]
mov esi, eax
push 0
push esi
mov dword [ebp - 0x1414], esi
call fcn.00414930
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x1428]
push esi
call fcn.00414d40
add esp, 0xc
push dword [ebp + 0x10]
push esi
mov esi, str.Content_Type:_application_x_www_form_urlencoded
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push dword [ebp - 0x1414]
test eax, eax
jne 0x407092
call fcn.00411d81
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edi
mov dword [edi + 0x54], eax
call fcn.004079e5
xor eax, eax
cmp dword [edi + 0x54], 0x2ee2
setne al
dec eax
and eax, reloc.OLEAUT32.dll_SysStringLen
dec eax
jmp 0x40723a
call fcn.00411d81
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
and dword [ebp - 0x1418], 0
pop ecx
push 0
lea eax, [ebp - 0x1420]
push eax
lea eax, [ebp - 0x1418]
push eax
push 0x20000013
push dword [edi + 0xc]
mov dword [ebp - 0x1420], 4
call esi
test eax, eax
je 0x407227
cmp dword [ebp - 0x1418], 0xc8
je 0x407169
cmp dword [ebp - 0x1418], 0x12c
jbe 0x407009
cmp dword [ebp - 0x1418], 0x12e
ja 0x407009
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00414930
add esp, 0xc
push 0
lea eax, [ebp - 0x1420]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x21
push dword [edi + 0xc]
mov dword [ebp - 0x1420], ebx
call esi
test eax, eax
je 0x407227
lea eax, [ebp - 0x410]
push eax
lea eax, [edi + 0x4c]
push eax
call fcn.00407f6c
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [edi + 0xc], 0
xor eax, eax
inc eax
jmp 0x40723a
cmp dword [edi + 0x44], 0
jne 0x406fc9
push 0x1000
lea eax, [ebp - 0x1410]
push 0
push eax
call fcn.00414930
mov eax, dword [ebp - 0x1424]
mov esi, dword [ebx]
add esp, 0xc
and dword [ebx], 0
mov dword [ebp - 0x1414], eax
and dword [ebp - 0x141c], 0
cmp dword [edi + 0x44], 0
jne 0x406fc9
lea eax, [ebp - 0x141c]
push eax
push 0xfff
lea eax, [ebp - 0x1410]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407227
mov eax, dword [ebp - 0x141c]
test eax, eax
je 0x4071ff
mov ecx, dword [ebx]
add ecx, eax
cmp ecx, esi
ja 0x4071ff
push eax
lea eax, [ebp - 0x1410]
push eax
push dword [ebp - 0x1414]
call fcn.00414d40
mov eax, dword [ebp - 0x141c]
add esp, 0xc
add dword [ebp - 0x1414], eax
add dword [ebx], eax
test eax, eax
ja 0x40719a
mov eax, dword [ebp - 0x1414]
mov byte [eax + 1], 0
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [edi + 0xc], 0
cmp esi, dword [ebx]
sbb eax, eax
and eax, reloc.OLEAUT32.dll_SysStringLen
jmp 0x40723a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edi
mov dword [edi + 0x54], eax
call fcn.004079e5
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d8c
leave
ret 0x10