Function at 0x40e930
Capabilities:
Prepare http request
Receive http response

Disassembly:
sub esp, 0x60
push ebx
mov edx, dword [eax + 0x34]
xor ebx, ebx
xor ecx, ecx
cmp dword [eax + 0x14], 2
mov eax, dword [eax + 4]
push ebp
setne cl
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
dec ecx
and ecx, 0x800000
push ecx
push ebx
push ebx
push ebx
push edx
push 0x45fbe0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebp, eax
cmp ebp, ebx
jne 0x40e9ab
push 0x461064
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 0x3e
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x34]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov ecx, edi
push ecx
call fcn.004326bc
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push ebx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40eb4d
mov eax, ebp
call fcn.0040eb90
cmp eax, 0xc8
je 0x40ea10
push str.GetHTTPStatusCode
push eax
push 3
push 0x52
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x34]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov edx, edi
push edx
call fcn.004326bc
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40ead3
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40eac2
inc eax
push eax
call fcn.0040efbf
mov ecx, dword [esp + 0x14]
add esp, 4
inc ecx
push ecx
mov esi, eax
push ebx
push esi
call fcn.004323a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
push esi
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40eb10
xor eax, eax
cmp byte [esi], 0xd
mov ecx, esi
jne 0x40ea8d
mov edx, dword [esp + 0x10]
cmp byte [ecx + 1], 0xa
jne 0x40ea8d
cmp eax, edx
jae 0x40ea8d
add eax, 2
cmp byte [eax + esi], 0xd
lea ecx, [eax + esi]
je 0x40ea77
lea ecx, [eax + esi]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40ea95
sub eax, edi
push eax
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.00404d70
push esi
call fcn.0040efb4
add esp, 4
cmp dword [esp + 0x14], ebx
je 0x40eac2
cmp dword [esp + 0x10], ebx
ja 0x40ea10
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
push 0x46108c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 0x5a
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x34]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov ecx, edi
push ecx
call fcn.004326bc
push 0x4610a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 0x6d
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x34]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov edx, edi
push edx
call fcn.004326bc
push 0x4610bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push 0x81
push str...commonWinHTTPWrap.cpp
push 0x60000
push 0x45fe88
mov ecx, str.win_http
lea edi, [esp + 0x34]
call fcn.00404820
add esp, 0x1c
push 0x46780c
mov eax, edi
push eax
call fcn.004326bc
int3