Function at 0x485600
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef71
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x572bb0]
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 esi, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
push 0
push 0
push 0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
push str.Playtech_WinClient_Downloader_1.0
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x5c], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x48576e
push str.error_HttpPostRequest_InternetOpen_
lea ecx, [ebp - 0x3c]
call fcn.00471bb0
mov dword [ebp - 4], 1
call fcn.00460220
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x485698
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.00472fc0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00472f20
add esp, 4
mov edx, eax
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.0047f140
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x44]
mov eax, esi
add edx, 0xfffffff0
mov dword [ebp - 0x5c], 1
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48570a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, esi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48572a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x485747
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x3c]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x485bad
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x485bad
and dword [ebp - 0x50], 0xfffffe00
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x30]
and eax, 0xffffff04
mov dword [ebp - 0x2c], 0
or eax, 0x104
mov dword [ebp - 0x30], eax
mov eax, dword [0x57c5d0]
test al, 1
jne 0x4857c2
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 str.POST
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
push eax
push ecx
push str.method
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0048a2e0
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00472970
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0048a100
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 9
push eax
push ecx
push 0x54d294
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0048a2e0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 0x10
jb 0x485855
push dword [ebp - 0x28]
call fcn.004e98a6
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.00485190
push eax
push ecx
push str.acceptedStatusCodes
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0048a2e0
mov eax, dword [ebp - 0x30]
and eax, 0xffffff04
mov dword [ebp - 0x2c], 0
or eax, 0x104
mov dword [ebp - 0x30], eax
mov eax, dword [0x57c5d0]
test al, 1
jne 0x4858c2
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 [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xb
push eax
push ecx
push str.acceptTypes
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0048a2e0
mov eax, dword [ebp - 0x30]
and eax, 0xffffff05
mov dword [ebp - 0x2c], 0
or eax, 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x38], al
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xc
push eax
push ecx
push str.noResponse
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0048a2e0
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x485960
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
call fcn.0047db90
mov esi, dword [ebp - 0x3c]
cmp dword [esi - 4], 1
jle 0x485993
push dword [esi - 0xc]
lea ecx, [ebp - 0x3c]
call fcn.0047e0e0
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
and eax, 0xffffff04
mov dword [ebp - 0x2c], 0
or eax, 0x104
mov dword [ebp - 0x30], eax
mov eax, dword [0x57c5d0]
test al, 1
jne 0x4859d2
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 esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xe
push eax
push ecx
push 0x54d760
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.0048a2e0
mov eax, dword [ebp - 0x30]
and eax, 0xffffff04
mov dword [ebp - 0x2c], 0
or eax, 0x104
mov dword [ebp - 0x30], eax
mov eax, dword [0x57c5d0]
test al, 1
jne 0x485a4b
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 str.application_x_www_form_urlencoded
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xf
push eax
push ecx
push str.contentType
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.0048a2e0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x485ae7
lea ecx, [ebp - 0x28]
call fcn.00472970
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.0048a100
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x11
push eax
push ecx
push str.additionalRequestHeaders
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.0048a2e0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x14], 0x10
jb 0x485ae7
push dword [ebp - 0x28]
call fcn.004e98a6
add esp, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x485b45
lea ecx, [ebp - 0x28]
call fcn.00472970
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x12
call fcn.0048a100
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x13
push eax
push ecx
push str.referer
lea ecx, [ebp - 0x58]
call fcn.0048ac10
mov ecx, eax
call fcn.0048a3a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x12
call fcn.0048a2e0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x14], 0x10
jb 0x485b45
push dword [ebp - 0x28]
call fcn.004e98a6
add esp, 4
push 0
lea eax, [ebp - 0x58]
mov edx, edi
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x70]
call fcn.00480840
add esp, 0xc
push edi
mov byte [ebp - 4], 0x14
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0048a170
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 0xd
call fcn.0048a2e0
add esi, 0xfffffff0
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x485ba1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0048a2e0
mov eax, ebx
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.004e94b7
mov esp, ebp
pop ebp
ret