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

Disassembly:
push 0x2a0
mov eax, 0x423b30
call fcn.0042147b
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
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 + 0x18]
mov ecx, edi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00412d87
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 0x414378
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 0x14
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 + 0x54]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x290], eax
cmp eax, ebx
jne 0x4143e3
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x414347
push dword [ebp - 0x184]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
jmp 0x414347
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 dword [ebp - 0x290]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
cmp edi, ebx
jne 0x414476
push dword [ebp - 0x290]
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 0x414457
push dword [ebp - 0x288]
call esi
pop ecx
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x414347
push dword [ebp - 0x184]
call esi
jmp 0x4143dd
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x414482
lea eax, [ebp - 0x2c]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x1c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4144aa
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push dword [ebp - 0x290]
call edi
jmp 0x41443a
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x414497
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 edi
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x2a0], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41455f
cmp dword [ebp - 0x298], ebx
je 0x41455f
push dword [ebp - 0x298]
call fcn.0042129f
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41455f
push dword [ebp - 0x298]
push ebx
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x298]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x414554
push dword [ebp - 0x2a0]
lea ecx, [ebp - 0x64]
push esi
call fcn.00408749
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
xor esi, esi
pop ecx
cmp dword [ebp - 0x2a0], ebx
je 0x41455f
cmp dword [ebp - 0x298], ebx
ja 0x4144c7
cmp esi, ebx
je 0x41455f
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0x290]
call esi
push 3
pop edi
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x54], edi
jae 0x4145ef
push ebx
push 1
call fcn.0040439d
mov esi, dword [sym.imp.MSVCR100.dll_free]
lea eax, [ebp - 0x284]
cmp dword [ebp - 0x288], eax
je 0x4145a0
push dword [ebp - 0x288]
call esi
pop ecx
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x4145b7
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 0x414370
push 1
push ebx
lea eax, [ebp - 0x28c]
push eax
mov byte [ebp - 0x28c], 0x20
call fcn.0040c7f9
mov esi, eax
cmp esi, dword [ebp - 0x54]
jae 0x4146be
cmp esi, edi
ja 0x414616
mov edi, esi
push edi
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 0x41462e
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 0x4146a2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x41466f
lea eax, [ebp - 0x48]
cmp byte [eax + esi - 1], 0xa
jne 0x414681
dec esi
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.0040c9e2
cmp esi, ebx
jbe 0x4146a2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x414690
lea eax, [ebp - 0x48]
cmp byte [eax + esi - 1], 0xd
jne 0x4146a2
push ebx
dec esi
push esi
lea ecx, [ebp - 0x48]
call fcn.0040c9e2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4146ad
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x2ac]
push eax
call fcn.004047af
lea ecx, [ebp - 0x48]
jmp 0x4146e7
push edi
push ebx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040ca37
cmp dword [eax + 0x14], 0x10
jb 0x4146d4
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 0x414717
push dword [ebp - 0x288]
call esi
pop ecx
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x184], eax
je 0x41472e
push dword [ebp - 0x184]
call esi
pop ecx
mov byte [ebp - 0x28c], 1
jmp 0x4145bd