Function at 0x40db0c
Capabilities:
Prepare http request
Print debug messages
Receive http response

Disassembly:
push 0x2a0
mov eax, 0x423b30
call fcn.0042147b
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.CReportInetSession::SendCmd_strServer
mov edi, ecx
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x290], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x42866c
mov ecx, ebx
mov dword [esi], 0x190
call fcn.004047af
xor ebx, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x14]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040d6c2
mov esi, 0x436718
push esi
lea ecx, [ebp - 0x294]
call fcn.004040ca
push esi
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 1
call fcn.004040ca
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x290]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040d14f
test al, al
jne 0x40dbf1
mov ecx, dword [ebp - 0x29c]
add ecx, 0xfffffff0
call fcn.00401171
mov ecx, dword [ebp - 0x294]
add ecx, 0xfffffff0
call fcn.00401171
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040439d
xor al, al
call fcn.004214fe
ret 0x10
mov esi, 0xfde9
push esi
push dword [ebp - 0x294]
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x184], eax
call fcn.00404135
push ebx
push dword [ebp - 0x290]
mov byte [ebp - 4], 3
push dword [ebp - 0x184]
push dword [edi + 0x3c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x290], edi
cmp edi, ebx
jne 0x40dc5e
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x40dbc0
push dword [ebp - 0x184]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
jmp 0x40dbc0
push esi
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], eax
call fcn.00404135
push 0x100
push ebx
push ebx
push str.HTTP_1.1
push dword [ebp - 0x288]
mov byte [ebp - 4], 4
push str.POST
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
jne 0x40dce7
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [sym.imp.MSVCR100.dll_free]
lea eax, [ebp - 0x284]
cmp dword [ebp - 0x288], eax
je 0x40dcc8
push dword [ebp - 0x288]
call esi
pop ecx
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x40dbc0
push dword [ebp - 0x184]
call esi
jmp 0x40dc58
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40dcf3
lea eax, [ebp - 0x2c]
push ebx
push dword [ebp - 0x1c]
mov edi, str.Content_Type:_application_x_www_form_urlencoded
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40dd28
push dword [ebp - 0x290]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push esi
call edi
jmp 0x40dcab
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x40ddb1
push dword [ebp - 0x290]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push esi
call edi
mov esi, dword [sym.imp.MSVCR100.dll_free]
lea eax, [ebp - 0x284]
cmp dword [ebp - 0x288], eax
je 0x40dd62
push dword [ebp - 0x288]
call esi
pop ecx
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x40dd79
push dword [ebp - 0x184]
call esi
pop ecx
mov byte [ebp - 0x28c], bl
mov ecx, dword [ebp - 0x29c]
add ecx, 0xfffffff0
call fcn.00401171
mov ecx, dword [ebp - 0x294]
add ecx, 0xfffffff0
call fcn.00401171
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040439d
mov al, byte [ebp - 0x28c]
jmp 0x40dbe9
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 5
lea eax, [ebp - 0x298]
push eax
push esi
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x2a0], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40de5a
cmp dword [ebp - 0x298], ebx
je 0x40de5a
push dword [ebp - 0x298]
call fcn.0042129f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40de5a
push dword [ebp - 0x298]
push ebx
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x298]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40de4f
push dword [ebp - 0x2a0]
lea ecx, [ebp - 0x64]
push edi
call fcn.00408749
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
xor edi, edi
pop ecx
cmp dword [ebp - 0x2a0], ebx
je 0x40de5a
cmp dword [ebp - 0x298], ebx
ja 0x40ddc2
cmp edi, ebx
je 0x40de5a
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x290]
call esi
push 1
push ebx
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x28c], 0x20
call fcn.0040c7f9
mov esi, eax
push 3
cmp esi, dword [ebp - 0x54]
jae 0x40df40
pop eax
cmp esi, eax
ja 0x40de98
mov eax, esi
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040ca37
push 0x10
pop edi
cmp dword [eax + 0x14], edi
jb 0x40deb0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
mov ecx, dword [ebp - 0x2a4]
push ebx
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x80]
call fcn.0040439d
push 0xffffffffffffffff
inc esi
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040ca37
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 6
cmp esi, ebx
jbe 0x40df24
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40def1
lea eax, [ebp - 0x48]
cmp byte [eax + esi - 1], 0xa
jne 0x40df03
dec esi
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.0040c9e2
cmp esi, ebx
jbe 0x40df24
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40df12
lea eax, [ebp - 0x48]
cmp byte [eax + esi - 1], 0xd
jne 0x40df24
push ebx
dec esi
push esi
lea ecx, [ebp - 0x48]
call fcn.0040c9e2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40df2f
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x2ac]
push eax
call fcn.004047af
lea ecx, [ebp - 0x48]
jmp 0x40df68
push ebx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040ca37
cmp dword [eax + 0x14], 0x10
jb 0x40df55
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
mov ecx, dword [ebp - 0x2a4]
mov dword [ecx], eax
lea ecx, [ebp - 0x80]
push ebx
push 1
call fcn.0040439d
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040439d
mov esi, dword [sym.imp.MSVCR100.dll_free]
lea eax, [ebp - 0x284]
cmp dword [ebp - 0x288], eax
je 0x40df98
push dword [ebp - 0x288]
call esi
pop ecx
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x40dfaf
push dword [ebp - 0x184]
call esi
pop ecx
mov byte [ebp - 0x28c], 1
jmp 0x40dd7f