Function at 0x10004f3a
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
xor esi, esi
mov ebx, dword [0x10022984]
mov dword [ebp - 0x614], esi
lea edi, [ebp - 0x610]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x630], esi
lea edi, [ebp - 0x62c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push 0x3fe
mov word [ebp - 0x608], ax
lea eax, [ebp - 0x606]
push esi
push eax
call fcn.1000f670
mov dword [ebp - 0x618], esi
add esp, 0xc
mov esi, ebx
call fcn.100049d5
lea edi, [ebp - 0x608]
call fcn.10004a0b
xor eax, eax
lea edi, [ebp - 0x614]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x64c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
push esi
stosd dword es:[edi], eax
push esi
push esi
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx + 4], eax
cmp eax, esi
jne 0x10004fec
xor eax, eax
jmp 0x1000522f
cmp dword [ebx + 0x14], esi
je 0x1000500f
lea eax, [ebx + 0x18]
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x614], 3
mov dword [ebp - 0x60c], esi
jmp 0x10005170
lea eax, [ebp - 0x64c]
push eax
call fcn.10004a97
pop ecx
cmp eax, edi
jne 0x10005170
mov eax, dword [ebp - 0x644]
cmp eax, esi
je 0x10005044
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x614], 3
mov dword [ebp - 0x60c], esi
mov eax, dword [ebp - 0x648]
cmp eax, esi
je 0x100050db
mov dword [ebp - 0x628], eax
xor eax, eax
push 0x1fe
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push esi
push eax
mov dword [ebp - 0x630], 2
mov dword [ebp - 0x62c], esi
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x624], esi
mov dword [ebp - 0x620], esi
call fcn.1000f670
add esp, 0xc
lea ecx, [ebp - 0x208]
mov eax, ebx
call fcn.10004ea9
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebx + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x100050db
lea esi, [ebp - 0x63c]
lea edi, [ebp - 0x614]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
inc edi
cmp dword [ebp - 0x64c], esi
je 0x10005170
xor eax, eax
push 0x1fe
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push esi
push eax
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x62c], 3
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x628], esi
mov dword [ebp - 0x624], esi
mov dword [ebp - 0x620], esi
call fcn.1000f670
add esp, 0xc
lea ecx, [ebp - 0x208]
mov eax, ebx
call fcn.10004ea9
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebx + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x10005170
lea esi, [ebp - 0x63c]
lea edi, [ebp - 0x614]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
inc edi
cmp dword [ebp - 0x610], esi
je 0x1000518c
push 0xc
lea eax, [ebp - 0x614]
push eax
push 0x26
push dword [ebx + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebx + 4]
cmp ecx, esi
je 0x100051ab
mov eax, 0x493e0
push eax
push eax
push eax
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x10004fe5
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x100051cc
movzx ecx, word [ebx + 0x498]
push esi
push ecx
lea ecx, [ebx + 0x218]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x100051f9
lea ecx, [ebx + 0x298]
cmp dword [ebx + 0x10], esi
je 0x100051e5
push 0x800000
jmp 0x100051e6
push esi
push esi
push esi
push esi
push ecx
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
cmp eax, esi
je 0x10004fe5
cmp dword [ebx + 0x10], esi
je 0x1000522d
push 4
lea ecx, [ebp - 0x618]
push ecx
push 0x1f
push eax
mov dword [ebp - 0x618], 0x3300
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10004fe5
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret