Function at 0x42eb90
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d3e1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x573be0]
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 dword [ebp - 0x40], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push str.Playtech_WinClient_Downloader_1.0
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
jne 0x42ed45
push 0x54b724
lea ecx, [ebp - 0x50]
call fcn.004204a0
push str.HttpRequest_InternetOpen_null
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.004204a0
mov byte [ebp - 4], 2
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x64], ebx
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00421890
add esp, 4
lea ecx, [ebp - 0x50]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00421890
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00421800
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42ec90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ecb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42eccd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42eced
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ed0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.0042d8b0
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x44]
add ebx, 0xfffffff0
mov dword [ebp - 0x48], 1
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x42efd5
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x42efd5
and dword [ebp - 0x58], 0xfffffe00
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x30]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x30], eax
mov eax, dword [0x57d594]
mov dword [ebp - 0x2c], 0
test al, 1
jne 0x42ed99
or eax, 1
push 0x519370
mov dword [0x57d594], eax
mov dword [0x57d548], 0x54e51c
call fcn.004e9fbf
add esp, 4
mov ecx, dword [0x57664c]
push 0xffffffffffffffff
mov eax, dword [ecx]
push 0x54d37c
call dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push ecx
push str.method
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xe
call fcn.00439be0
mov ecx, eax
call fcn.00439350
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.00439290
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004212c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xf
call fcn.004390b0
lea eax, [ebp - 0x38]
push eax
push ecx
push 0x54d2bc
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x10
call fcn.00439be0
mov ecx, eax
call fcn.00439350
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xf
call fcn.00439290
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x14], 0x10
jb 0x42ee2d
push dword [ebp - 0x28]
call fcn.004e932d
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.00433a00
push eax
push ecx
push str.acceptedStatusCodes
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x11
call fcn.00439be0
mov ecx, eax
call fcn.00439350
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.00439290
mov eax, dword [ebp - 0x30]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x30], eax
mov eax, dword [0x57d594]
mov dword [ebp - 0x2c], 0
test al, 1
jne 0x42ee9a
or eax, 1
push 0x519370
mov dword [0x57d594], eax
mov dword [0x57d548], 0x54e51c
call fcn.004e9fbf
add esp, 4
mov ecx, dword [0x57664c]
push 0xffffffffffffffff
mov eax, dword [ecx]
push 0x54d3a0
call dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push ecx
push str.acceptTypes
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x12
call fcn.00439be0
mov ecx, eax
call fcn.00439350
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.00439290
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.004212c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x13
call fcn.004390b0
lea eax, [ebp - 0x38]
push eax
push ecx
push str.additionalRequestHeaders
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x14
call fcn.00439be0
mov ecx, eax
call fcn.00439350
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x13
call fcn.00439290
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x14], 0x10
jb 0x42ef2e
push dword [ebp - 0x28]
call fcn.004e932d
add esp, 4
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x42ef8b
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.004212c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x15
call fcn.004390b0
lea eax, [ebp - 0x38]
push eax
push ecx
push str.referer
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x16
call fcn.00439be0
mov ecx, eax
call fcn.00439350
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x15
call fcn.00439290
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x14], 0x10
jb 0x42ef8b
push dword [ebp - 0x28]
call fcn.004e932d
add esp, 4
push 0
lea eax, [ebp - 0x60]
push 0xffffffffffffffff
push eax
mov edx, esi
lea ecx, [ebp - 0x78]
call fcn.0042f000
add esp, 0xc
push esi
mov byte [ebp - 4], 0x17
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.00439120
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0xd
call fcn.00439290
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00439290
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.004e8f3a
mov esp, ebp
pop ebp
ret