Function at 0x47ff90
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50de2b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x572bb0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
push 0x3004
call fcn.004ea22e
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x78], 0
test eax, eax
je 0x480008
push fcn.00471d10
push 0x47f100
push 0x400
mov dword [eax], 0x400
add eax, 4
push 0xc
push eax
call fcn.004ea44b
push 0
push 0
push 0
push 0
push str.Playtech_WinClient_Downloader_1.0
mov dword [esp + 0x8c], 0xffffffff
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x480033
xor al, al
jmp 0x480396
and dword [esp + 0x2c], 0xfffffe00
mov dword [esp + 0x30], 0
mov dword [esp + 0x78], 2
mov eax, dword [esp + 0x1c]
and eax, 0xffffff04
mov dword [esp + 0x20], 0
or eax, 0x104
mov dword [esp + 0x1c], eax
mov eax, dword [0x57c5d0]
test al, 1
jne 0x48008d
or eax, 1
mov dword [0x57c510], 0x54e26c
push 0x518e70
mov dword [0x57c5d0], eax
call fcn.004ea214
add esp, 4
mov ecx, dword [0x573ffc]
push 0xffffffffffffffff
push 0x54d354
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 3
push eax
push ecx
push str.method
lea ecx, [esp + 0x30]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 2
call fcn.0048a2e0
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00472970
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 4
call fcn.0048a100
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 5
push eax
push ecx
push 0x54d294
lea ecx, [esp + 0x30]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 4
call fcn.0048a2e0
mov byte [esp + 0x78], 2
cmp dword [esp + 0x64], 0x10
jb 0x480131
push dword [esp + 0x50]
call fcn.004e98a6
add esp, 4
mov eax, dword [esp + 0x1c]
and eax, 0xffffff04
mov dword [esp + 0x20], 0
or eax, 0x104
mov dword [esp + 0x1c], eax
mov eax, dword [0x57c5d0]
test al, 1
jne 0x480173
or eax, 1
mov dword [0x57c510], 0x54e26c
push 0x518e70
mov dword [0x57c5d0], eax
call fcn.004ea214
add esp, 4
mov ecx, dword [0x573ffc]
push 0xffffffffffffffff
push 0x54d360
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
push ecx
push str.acceptedStatusCodes
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 6
call fcn.0048ac10
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0048a8e0
push eax
mov ecx, esi
call fcn.0048a960
add esp, 4
mov ecx, eax
call fcn.0048a3a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 2
call fcn.0048a2e0
mov eax, dword [esp + 0x1c]
and eax, 0xffffff04
mov dword [esp + 0x20], 0
or eax, 0x104
mov dword [esp + 0x1c], eax
mov eax, dword [0x57c5d0]
test al, 1
jne 0x480211
or eax, 1
mov dword [0x57c510], 0x54e26c
push 0x518e70
mov dword [0x57c5d0], eax
call fcn.004ea214
add esp, 4
mov ecx, dword [0x573ffc]
push 0xffffffffffffffff
push 0x54d378
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 7
push eax
push ecx
push str.acceptTypes
lea ecx, [esp + 0x30]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 2
call fcn.0048a2e0
mov eax, dword [esp + 0x1c]
and eax, 0xffffff05
mov dword [esp + 0x20], 0
or eax, 5
mov byte [esp + 0x14], 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 8
push eax
push ecx
push str.noResponse
lea ecx, [esp + 0x30]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 2
call fcn.0048a2e0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x48031d
mov edx, ebx
lea ecx, [esp + 0x50]
call fcn.00472970
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 9
call fcn.0048a100
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 0xa
push eax
push ecx
push str.additionalRequestHeaders
lea ecx, [esp + 0x30]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 9
call fcn.0048a2e0
mov byte [esp + 0x78], 2
cmp dword [esp + 0x64], 0x10
jb 0x480308
push dword [esp + 0x50]
call fcn.004e98a6
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
push 0
lea eax, [esp + 0x28]
mov edx, edi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x48]
call fcn.00480840
add esp, 0xc
push edi
mov byte [esp + 0x7c], 0xb
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
push str.result
lea ecx, [esp + 0x44]
call fcn.0048ac10
cmp byte [eax + 8], 5
jne 0x480373
push ecx
push str.result
lea ecx, [esp + 0x44]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a850
test al, al
je 0x480373
mov bl, 1
jmp 0x480375
xor bl, bl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 2
call fcn.0048a2e0
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], 0xffffffff
call fcn.0048a2e0
mov al, bl
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret