Function at 0x4329e0
Capabilities:
Initialize winhttp library
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 1
push 0x58
call fcn.00541555
mov esi, eax
mov dword [ebp - 0x10], 0xffffffff
push fcn.00432390
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
lea ebx, [ebp + 4]
mov dword [ebp - 0x1c], 0
add ebx, 0xfffffffc
push eax
push ebx
mov dword [ebp - 8], ebx
call fcn.00420810
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push fcn.00422230
push eax
push ebx
call fcn.00420810
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
push fcn.00422230
push eax
push ebx
call fcn.00420810
push 0x54
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0053f310
add esp, 0x38
cmp dword [0x5fddb0], 0
jne 0x432a73
push 0
push 0x5fddb4
call fcn.004291f0
add esp, 8
lea eax, [esi + 0x40]
mov dword [0x5fddb0], 1
push 0
push eax
call fcn.004291f0
push 0x432ed0
lea ebx, [esi + 0x34]
push esi
push ebx
call fcn.0042f640
lea eax, [esi + 0x14]
push eax
call fcn.004377b0
add esp, 0x18
test eax, eax
jne 0x432e05
push 1
push 0x50
call fcn.00541555
mov ebx, dword [ebp + 0x10]
add esp, 8
mov dword [esi + 0x20], eax
mov dword [eax + 0x48], 0xffffffff
test ebx, ebx
je 0x432ad4
push ebx
call fcn.00432950
add esp, 4
mov dword [esi + 0x1c], ebx
mov eax, dword fs:[0x2c]
lea ebx, [ebp - 0x7c]
test edi, edi
push 0
push dword [ebp + 8]
mov eax, dword [eax]
cmovne ebx, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ebx
mov dword [eax + 0x10c], edi
mov edi, ebx
mov dword [esi + 0x2c], ebx
push dword [ebp - 0x14]
call fcn.00447490
add esp, 0xc
test eax, eax
jne 0x432e02
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x432b4f
push eax
push str.http:___s
push edi
mov dword [ebp - 0x18], 3
call fcn.00420ca0
add esp, 4
push eax
call fcn.00421960
push dword [eax]
push dword [ebp - 0xc]
call fcn.00422260
add esp, 0x14
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x432b64
push eax
push edi
call fcn.00420ed0
add esp, 8
mov ecx, dword [eax]
jmp 0x432b69
mov ecx, str.wget
mov eax, dword [ebp - 0xc]
push 0x10000000
push 0
push dword [eax]
push dword [ebp - 0x18]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x10], eax
mov edi, ebx
test eax, eax
je 0x432e02
push 0
push 0x6f0c00
push 0x433000
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push eax
call fcn.0053b430
add esp, 4
cmp eax, 0xffffffff
jne 0x432bc4
push str.WinHttpSetStatusCallback_failed__m
push 0x550003
call fcn.00424230
add esp, 8
jmp 0x432e02
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x800
push eax
push 0x54
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push eax
call fcn.0053b400
add esp, 4
test eax, eax
jne 0x432bfb
push str.WinHttpSetOption_tls_failed__m
push 0x550003
call fcn.00424230
add esp, 8
push str.PORT
push dword [ebp - 4]
call fcn.00432430
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x108], edi
test edi, edi
jne 0x432c64
push str.PROTOCOL
push dword [ebp - 4]
mov edi, 0x570490
call fcn.004323f0
add esp, 8
nop
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x432c50
test cl, cl
je 0x432c4c
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x432c50
add eax, 2
add edi, 2
test cl, cl
jne 0x432c30
xor eax, eax
jmp 0x432c55
sbb eax, eax
or eax, 1
test eax, eax
mov edi, 0x50
mov ecx, 0x1bb
cmove edi, ecx
push str.HOSTNAME
push dword [ebp - 4]
call fcn.004323f0
push eax
push dword [ebp - 8]
call fcn.00420ed0
add esp, 0x10
push 0
push edi
push dword [eax]
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push eax
call fcn.0053b430
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
jne 0x432cb2
push str.WinHttpConnect_failed__m
push 0x550003
call fcn.00424230
add esp, 8
jmp 0x432e00
push str.PROTOCOL
push dword [ebp - 4]
mov edi, 0x570490
call fcn.004323f0
add esp, 8
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x432ce7
test cl, cl
je 0x432ce3
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x432ce7
add eax, 2
add edi, 2
test cl, cl
jne 0x432cc7
xor edi, edi
jmp 0x432cec
sbb edi, edi
or edi, 1
push 0x5704cc
push dword [ebp - 4]
call fcn.004323f0
push eax
push dword [ebp - 8]
call fcn.00420ed0
add esp, 0x10
xor ecx, ecx
test edi, edi
mov edx, 0x800000
cmove ecx, edx
cmp dword [ebx + 4], 0
push ecx
push 0
push 0
push 0
push dword [eax]
mov ecx, 0x5704dc
mov eax, 0x5704d0
cmove eax, ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push eax
call fcn.0053b430
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x432d5c
push str.WinHttpOpenRequest_failed__m
push 0x550003
call fcn.00424230
add esp, 8
jmp 0x432e00
lea eax, [esi + 0x34]
lock inc dword [eax]
push str.Connection:_close
push dword [ebp - 0x20]
call fcn.00422260
add esp, 8
push 0xa0000000
push 0xffffffffffffffff
push dword [eax]
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov eax, dword [ebx]
test eax, eax
je 0x432dc2
mov edi, ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push eax
push str._s:__s
push ebx
call fcn.00420e40
add esp, 0x10
push 0xa0000000
push 0xffffffffffffffff
push dword [eax]
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, dword [edi]
mov eax, dword [edi]
test eax, eax
jne 0x432d8f
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 8]
push esi
push eax
push eax
push dword [ebx + 4]
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push eax
call fcn.0053b400
add esp, 4
test eax, eax
jne 0x432df9
push str.WinHttpSendRequest_failed__m
push 0x550003
call fcn.00424230
add esp, 8
jmp 0x432e00
mov dword [ebp - 0x10], 0
mov edi, ebx
lea ebx, [esi + 0x34]
push 0x5fddb4
call fcn.00429200
mov eax, dword [0x5fddac]
add esp, 4
test eax, eax
je 0x432e2d
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [0x5fddac]
mov dword [eax], esi
mov eax, dword [esi]
mov dword [eax + 4], esi
jmp 0x432e35
mov dword [esi], esi
mov dword [0x5fddac], esi
push 0x5fddb4
mov dword [esi + 4], 0
call fcn.00429210
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x432e55
cmp dword [esi + 8], 0
jmp 0x432e6a
test edi, edi
je 0x432e75
cmp dword [edi + 0x20], 0
je 0x432e75
push esi
call fcn.00432fc0
add esp, 4
test eax, eax
je 0x432e75
push esi
call fcn.00432eb0
add esp, 4
lea edi, [esi + 0x40]
push edi
call fcn.00429200
push edi
mov dword [esi + 0x30], 1
call fcn.00429210
add esp, 8
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
jne 0x432ea2
push dword [ebx + 4]
mov ecx, dword [ebx + 8]
call ecx
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret