Function at 0x42e830
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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 dword [ebp - 0x40], edx
mov edi, ecx
mov dword [ebp - 0x50], edi
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 - 0x3c], eax
mov dword [ebp - 0x64], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
jne 0x42e9db
push 0x56d0dc
lea ecx, [ebp - 0x48]
call fcn.0041f910
push str.HttpRequest_InternetOpen_null
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
call fcn.0041f910
mov byte [ebp - 4], 1
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x42e8c6
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x50], ebx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x40]
call fcn.00420f70
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00420f70
add esp, 8
mov esi, eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.00420ee0
add esp, 4
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov edx, dword [ebp - 0x3c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e934
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e952
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
lea edx, [ebx - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e96d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e98b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e9a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x4c]
mov ecx, edi
call fcn.0042d7a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x42ebce
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x42ebce
and dword [ebp - 0x58], 0xfffffe00
mov dword [ebp - 0x54], 0
push 0x56e044
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xc
call fcn.00438120
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xd
push eax
push ecx
push str.method
lea ecx, [ebp - 0x60]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call fcn.00438390
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004201c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xe
call fcn.004381a0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xf
push eax
push ecx
push 0x56df84
lea ecx, [ebp - 0x60]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
call fcn.00438390
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42ea7c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004208e0
lea ecx, [ebp - 0x38]
call fcn.004338f0
push eax
push ecx
push str.acceptedStatusCodes
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x10
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call fcn.00438390
push 0x56e068
lea ecx, [ebp - 0x38]
call fcn.00438120
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x11
push eax
push ecx
push str.acceptTypes
lea ecx, [ebp - 0x60]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call fcn.00438390
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.004201c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x12
call fcn.004381a0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x13
push eax
push ecx
push str.additionalRequestHeaders
lea ecx, [ebp - 0x60]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
call fcn.00438390
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42eb36
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004208e0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x42eb93
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.004201c0
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x14
call fcn.004381a0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x15
push eax
push ecx
push str.referer
lea ecx, [ebp - 0x60]
call fcn.00438bb0
mov ecx, eax
call fcn.00438490
lea ecx, [ebp - 0x38]
call fcn.00438390
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42eb93
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004208e0
push 0
lea eax, [ebp - 0x60]
mov edx, esi
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x74]
call fcn.0042ebf0
add esp, 0xc
push esi
mov byte [ebp - 4], 0x16
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.00438230
lea ecx, [ebp - 0x74]
call fcn.00438390
lea ecx, [ebp - 0x60]
call fcn.00438390
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.004f4566
mov esp, ebp
pop ebp
ret