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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x1c]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
cmp eax, esi
je 0x100026c4
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x100026cd
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x100026d6
mov dword [eax], esi
mov eax, dword [ebp + 8]
push 0x800000
push esi
push esi
push esi
push 0x10010c18
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, esi
jne 0x10002707
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x1f
push ebx
mov dword [ebp - 0x14], 0x3100
call edi
push 4
lea edx, [ebp - 0x14]
push edx
push 0x3f
push ebx
mov dword [ebp - 0x14], 8
call edi
push 0x36ee80
push 0x36ee80
push 0x493e0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push eax
call fcn.10002650
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100028d4
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1000276e
mov byte [eax], 1
cmp dword [ebp + 0x14], esi
je 0x100028d4
cmp dword [ebp + 0x18], esi
je 0x100028d4
cmp dword [ebp - 4], esi
je 0x100028d4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x100028a0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000287c
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp + 0x1c], ebx
test ebx, ebx
je 0x10002885
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100028bd
cmp dword [ebp - 4], 0
jbe 0x1000285f
test esi, esi
je 0x10002829
jmp 0x100027f4
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jae 0x10002842
add eax, eax
push eax
push esi
push 8
mov ebx, esi
mov dword [ebp - 0x18], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x100027f1
push ebx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp + 0x1c]
push 0x186a0
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x18], 0x186a0
test esi, esi
je 0x10002859
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
add eax, esi
push ebx
push eax
call fcn.1000b320
add esp, 0xc
mov ecx, dword [ebp - 4]
add dword [ebp - 8], ecx
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
jne 0x10002790
test esi, esi
jne 0x100028e8
cmp dword [ebp - 8], esi
je 0x100028d4
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ebp - 0xc], 8
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x100028d4
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov dword [edx], esi
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ecx], eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret