Function at 0x100412e8
Capabilities:
Prepare http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], esi
cmp dword [ebp + 8], edi
jne 0x1004132b
mov edi, 0x1000f40c
mov ebx, 0x1000fc00
push edi
push ebx
push 0x10005488
mov esi, 0x80070057
call fcn.1003511d
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.10035481
jmp 0x1004155a
mov eax, dword [ebp + 0x18]
mov ecx, 0x100075e8
mov eax, dword [eax + 8]
test eax, eax
mov dword [esi + 0x68], eax
mov eax, ecx
jne 0x10041344
mov eax, 0x100075f4
push eax
push ecx
push 0x10002e20
push dword [ebp + 8]
mov ebx, 0x1000fc00
push ebx
push 0x10012b38
call fcn.100350d6
add esi, 0x1c
add esp, 0x18
cmp dword [esi], edi
je 0x10041373
push dword [esi]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
and dword [esi], edi
pop ecx
mov ecx, dword [ebp + 0x14]
push esi
call fcn.10040c7e
mov esi, eax
test esi, esi
jns 0x1004139b
push esi
push 0x1001246c
push ebx
push 0x100054c8
call fcn.1003511d
add esp, 0x10
jmp 0x1004155a
push 0x800000
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push 0x10002e20
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
test eax, eax
jne 0x100413f3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov edx, 0x800000
push edi
call fcn.10035791
test edi, edi
je 0x100413f3
push edi
push 0x10012bb0
push ebx
push 0x10005980
call fcn.1003511d
add esp, 0x10
jmp 0x10041547
mov eax, dword [ebp - 4]
push 0
push 0x6f4800
push 0x100419c0
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x10041430
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov ecx, 0x6f4800
mov edx, edi
call fcn.100357e0
test edi, edi
je 0x10041430
push edi
push 0x10012bd8
jmp 0x100413e0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x68], 0
jne 0x1004150a
push 8
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1004145b
and dword [ecx + 4], 0
mov dword [ecx], 0x10001228
jmp 0x10041460
xor ecx, ecx
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x1004147b
push ebx
push 0x10005518
mov esi, 0x8007000e
call fcn.10035135
pop ecx
pop ecx
jmp 0x10041547
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov dword [ebp - 0xc], edx
cmp ecx, edx
je 0x100414aa
test edx, edx
je 0x100414a5
mov eax, dword [edx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1004f3f8]
mov ecx, dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x48], ecx
mov edx, ecx
push dword [ebp + 0x18]
mov ecx, edx
call fcn.10040d9b
mov esi, eax
test esi, esi
jns 0x100414cb
push esi
push 0x10012c10
push ebx
push 0x100054c8
jmp 0x100413e6
mov eax, dword [ebp - 4]
push 0
push 0x1200000
push 0x100419c0
mov eax, dword [eax + 0x48]
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x10041507
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov ecx, 0x1200000
mov edx, edi
call fcn.100357e0
test edi, edi
jne 0x10041428
mov eax, dword [ebp - 4]
push dword [eax + 0x6c]
push 0x7530
push 0xea60
push 0
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10041547
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x10041538
movzx eax, ax
or eax, 0x80070000
push eax
push ebx
push 0x10012c50
call fcn.10035105
add esp, 0xc
test edi, edi
je 0x1004155a
jg 0x10041551
mov esi, edi
jmp 0x1004155a
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14