Function at 0x43bf1118
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c1ac82
mov eax, dword fs:[0]
push eax
mov eax, 0x2504
call fcn.43bfb2f0
mov eax, dword [0x43c3a250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24dc]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
and dword [ebp - 0x24e0], 0
mov dword [ebp - 0x24e8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x250c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24e4], esi
mov dword [ebp - 0x2500], eax
call fcn.43bf1672
push 2
lea ecx, [ebp - 0x24dc]
call fcn.43bf1e6e
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
test esi, esi
je 0x43bf11e9
push esi
lea ecx, [ebp - 0x70]
call fcn.43bc6497
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push 0xfde9
push eax
call fcn.43bc19cf
add esp, 0xc
mov byte [ebp - 4], 0
xor eax, eax
lea ecx, [ebp - 0x70]
inc eax
push 0
push eax
call fcn.43bc2382
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x43bf11ec
lea eax, [ebp - 0x28]
xor esi, esi
lea ecx, [ebp - 0x24dc]
push esi
push eax
call fcn.43bf0f71
test eax, eax
jne 0x43bf1206
mov edi, esi
jmp 0x43bf159b
lea eax, [ebp - 0x249a]
push eax
lea ecx, [ebp - 0x40]
call fcn.43bc35c0
lea eax, [ebp - 0x2094]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.43bc35c0
movzx eax, word [ebp - 0x90]
mov dword [ebp - 0x24ec], eax
xor eax, eax
mov esi, eax
mov dword [ebp - 0x24f0], eax
mov dword [ebp - 0x24f4], esi
push eax
push eax
push eax
push eax
push 0x43c2b0ac
mov byte [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x24f8], eax
test eax, eax
jne 0x43bf127e
push 0xa
inc eax
push 0x2328
push eax
call fcn.43bf4724
mov edi, dword [ebp - 0x24e0]
add esp, 0xc
jmp 0x43bf157f
push dword [ebp - 0x24e4]
mov ecx, ebx
push eax
call fcn.43bf1ca7
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
push dword [ebp - 0x24ec]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x24f8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x2504], ecx
test ecx, ecx
jne 0x43bf12d4
push 0xb
inc eax
push 0x2328
push eax
call fcn.43bf4724
mov edi, dword [ebp - 0x24e0]
add esp, 0xc
jmp 0x43bf1568
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0x100
cmovae eax, dword [ebp - 0x58]
xor edx, edx
push edx
push edx
push edx
push eax
push dword [ebp - 0x24e8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x24e4], eax
test eax, eax
jne 0x43bf131d
push 0xc
inc eax
push 0x2328
push eax
call fcn.43bf4724
mov edi, dword [ebp - 0x24e0]
add esp, 0xc
jmp 0x43bf155c
xor ecx, ecx
push ecx
push dword [edi + 0x10]
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x43bf1350
push 0xd
xor eax, eax
inc eax
push 0x2328
push eax
call fcn.43bf4724
mov edi, dword [ebp - 0x24e0]
add esp, 0xc
jmp 0x43bf1550
push dword [ebp - 0x24e8]
push str.POST
call fcn.43bfab92
pop ecx
pop ecx
test eax, eax
jne 0x43bf1395
and dword [ebp - 0x24ec], eax
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x43bf1377
mov edi, dword [edi]
lea ecx, [ebp - 0x24ec]
push ecx
push eax
push edi
mov edi, dword [ebp - 0x24e4]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x43bf139b
push 0xe
jmp 0x43bf1334
mov edi, dword [ebp - 0x24e4]
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x43bf13ac
push 0xf
jmp 0x43bf1334
lea eax, [ebp - 0x2510]
mov dword [ebp - 0x2508], 4
push eax
lea eax, [ebp - 0x2508]
xor ecx, ecx
push eax
lea eax, [ebp - 0x24fc]
mov dword [ebp - 0x24fc], ecx
push eax
push ecx
push 0x20000005
push edi
mov dword [ebp - 0x2510], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x43bf13f1
push 0x10
jmp 0x43bf1334
cmp dword [ebp + 0x1c], 0
je 0x43bf143e
push 0
push 0
push 0x80
push 2
push 2
push 0x40000000
push dword [ebp - 0x2500]
lea ecx, [ebp - 0x24f4]
call fcn.43bf1062
mov esi, dword [ebp - 0x24f4]
test eax, eax
jns 0x43bf143e
test esi, esi
je 0x43bf1437
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x24f4], esi
push 0x11
jmp 0x43bf1334
and dword [ebp - 0x24e8], 0
and dword [ebx], 0
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x43bf1524
mov eax, dword [ebx]
test eax, eax
je 0x43bf1505
inc eax
push eax
call fcn.43bf8c5e
mov edi, eax
pop ecx
test edi, edi
je 0x43bf1537
mov eax, dword [ebx]
inc eax
push eax
push 0
push edi
call fcn.43bfa2b0
add esp, 0xc
lea eax, [ebx + 4]
push eax
push dword [ebx]
push edi
push dword [ebp - 0x24e4]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x43bf1501
cmp dword [ebp + 0x1c], 0
je 0x43bf14b0
push 0
push dword [ebx]
lea ecx, [ebp - 0x24f4]
push edi
call fcn.43bf2028
push edi
call fcn.43bc24a2
pop ecx
mov ecx, dword [ebp - 0x250c]
push eax
push edi
call fcn.43bc3697
mov ecx, dword [ebp - 0x24e8]
add ecx, dword [ebx]
cmp dword [ebp - 0x24fc], ecx
mov eax, dword [ebp - 0x24e0]
push 1
mov dword [ebp - 0x24e8], ecx
pop ecx
cmove eax, ecx
push edi
mov dword [ebp - 0x24e0], eax
call fcn.43bf9bc0
cmp dword [ebx], 0
pop ecx
jbe 0x43bf1537
mov edi, dword [ebp - 0x24e4]
jmp 0x43bf1445
push 0x14
jmp 0x43bf1526
mov edi, dword [ebp - 0x24e0]
test edi, edi
jne 0x43bf153d
push 0x13
xor eax, eax
inc eax
push 0x2328
push eax
call fcn.43bf4724
add esp, 0xc
jmp 0x43bf153d
push 0x12
xor eax, eax
inc eax
push 0x2328
push eax
call fcn.43bf4724
add esp, 0xc
mov edi, dword [ebp - 0x24e0]
cmp dword [ebp + 0x1c], 0
je 0x43bf1550
test esi, esi
je 0x43bf1550
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push dword [ebp - 0x24e4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x2504]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x24f8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x43bf157f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x58]
xor esi, esi
inc eax
push esi
push eax
call fcn.43bc1f54
xor eax, eax
lea ecx, [ebp - 0x40]
push esi
inc eax
push eax
call fcn.43bc1f54
xor eax, eax
lea ecx, [ebp - 0x28]
push esi
inc eax
push eax
call fcn.43bc1f54
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.43bfad82
mov esp, ebp
pop ebp
ret 0x1c