Function at 0x42e520
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520d22
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x595cb8]
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 edi, edx
mov ebx, ecx
push 0x3004
call fcn.004f45af
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42e58a
push 0x42e7e0
push 0x42d760
push 0x400
mov dword [eax], 0x400
add eax, 4
push 0xc
push eax
call fcn.004f4d91
push 0
push 0
push 0
push 0
push str.Playtech_WinClient_Downloader_1.0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
jne 0x42e5b1
xor al, al
jmp 0x42e7bd
and dword [ebp - 0x40], 0xfffffe00
mov dword [ebp - 0x3c], 0
push 0x56e044
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 2
call fcn.00438120
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
push ecx
push str.method
lea ecx, [ebp - 0x48]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00438390
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.004201c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.004381a0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
push ecx
push 0x56df84
lea ecx, [ebp - 0x48]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
call fcn.00438390
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42e651
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004208e0
push 0x56e050
lea ecx, [ebp - 0x38]
call fcn.00438120
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 6
push eax
push ecx
push str.acceptedStatusCodes
lea ecx, [ebp - 0x48]
call fcn.00438bb0
mov ecx, eax
call fcn.00438e20
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00438390
push 0x56e068
lea ecx, [ebp - 0x38]
call fcn.00438120
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
push eax
push ecx
push str.acceptTypes
lea ecx, [ebp - 0x48]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
call fcn.00438390
mov eax, dword [ebp - 0x30]
and eax, 0xffffff05
mov dword [ebp - 0x2c], 0
or eax, 5
mov byte [ebp - 0x38], 1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
push eax
push ecx
push str.noResponse
lea ecx, [ebp - 0x48]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00438390
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x42e758
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.004201c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.004381a0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
push ecx
push str.additionalRequestHeaders
lea ecx, [ebp - 0x48]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
call fcn.00438390
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42e758
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004208e0
push 0
lea eax, [ebp - 0x48]
mov edx, esi
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042ebf0
add esp, 0xc
push esi
mov byte [ebp - 4], 0xb
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
push str.result
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
cmp byte [eax + 8], 5
jne 0x42e7a9
push ecx
push str.result
lea ecx, [ebp - 0x5c]
call fcn.00438bb0
mov ecx, eax
call fcn.004388a0
test al, al
je 0x42e7a9
mov bl, 1
jmp 0x42e7ab
xor bl, bl
lea ecx, [ebp - 0x5c]
call fcn.00438390
lea ecx, [ebp - 0x48]
call fcn.00438390
mov al, bl
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.004f4566
mov esp, ebp
pop ebp
ret