Function at 0x4312e0
Capabilities:
Prepare http request
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebp + 0x1c]
push 0
push 0x1bb
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
push ecx
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x2c], 0x4f76c4
mov dword [ebp - 0x28], 0
mov dword [eax], 0
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
jne 0x4313de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ebx
push 0x1d7
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov edi, eax
call fcn.004a44e0
mov dword [ebp - 4], ebx
mov edx, str.WinHttpConnect_error:
mov eax, dword [ebp - 0x18]
push edi
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4a80
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x43148d
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x4313c1
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.004a78e3
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800000
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push dword [ebp + 0x10]
push str.POST
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x4314a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push esi
push 0x1f5
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov edi, eax
call fcn.004a44e0
mov dword [ebp - 4], 1
mov edx, str.WinHttpOpenRequest_error:
mov eax, dword [ebp - 0x18]
push edi
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4a80
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x431484
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x43147b
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.004a78e3
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x24]
mov edx, edi
mov ecx, esi
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00430b20
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x431567
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x431541
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push 0x20b
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov edi, eax
call fcn.004a44e0
mov dword [ebp - 4], 2
mov edx, str.WinHttpQueryHeaders_for_http_code__error:
mov eax, dword [ebp - 0x20]
push edi
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4a40
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x43148a
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
test edx, edx
je 0x43155d
push dword [ebp + 0x2c]
mov ecx, esi
call fcn.00430f30
add esp, 4
mov edx, dword [ebp + 0x30]
mov ecx, esi
call fcn.00430ce0
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x43148a