Function at 0x401720
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0x3300
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
je 0x401748
mov dword [eax], ebx
cmp edx, ebx
jne 0x401759
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 8]
cmp eax, ebx
jne 0x40176d
pop esi
mov eax, 0x8007139f
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ecx + 0xc]
push edi
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
push ebx
push ebx
push ebx
push edx
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
cmp edi, ebx
jne 0x4017b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4017a6
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
mov dword [ebp - 4], eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004a4832
push 4
lea edx, [ebp - 0x18]
push edx
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4017f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4017de
and eax, 0xffff
or eax, 0x80070000
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push esi
push eax
push 0xffffffffffffffff
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x401818
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x4017d4
jmp 0x4017de
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40180c
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x20000013
push edi
mov dword [ebp - 8], 4
call esi
test eax, eax
je 0x40180c
cmp dword [ebp + 0x10], ebx
je 0x4019e8
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push 1
push edi
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x401873
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x4018e2
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
push eax
push edi
xor esi, esi
mov dword [ebp - 8], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x401937
jmp 0x401890
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40197d
mov edx, dword [ebp - 0x10]
lea ecx, [esi + eax + 1]
push ecx
push edx
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
cmp eax, ebx
je 0x4019dc
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x10], eax
push edx
add eax, esi
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x401937
add esi, dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x401890
jmp 0x401937
cmp eax, 0x7a
jne 0x401812
mov eax, dword [ebp - 8]
cmp eax, 2
jbe 0x401870
add eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x401923
push edi
mov dword [ebp - 4], 0x8007000e
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea edx, [ebp - 8]
push edx
push eax
push ebx
push 1
push edi
call esi
test eax, eax
jne 0x401873
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40194b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40195c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40196a
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x5a1374
push 0x18
call fcn.0059e3d7
add esp, 8
cmp eax, ebx
je 0x4019dc
mov edx, dword [ebp - 0x10]
mov dword [eax], 0x59f3a4
mov dword [eax + 4], 1
mov dword [eax], 0x59f3a8
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0x10]
push edi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], ecx
mov dword [edx], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0x8007000e
jmp 0x40194e
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc8]
cmp ecx, 0x63
ja 0x40196a
or eax, 0x80040000
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc