Function at 0x4575ca
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x254
mov eax, 0x666376
call fcn.00469b60
push dword [ebp + 8]
mov edi, str.ReplayLocalServer
push str.HandleHttpRequest_s0x_x
push edi
push 3
mov esi, ecx
call fcn.0042fdf6
add esp, 0x10
cmp dword [ebp + 8], 0xffffffff
je 0x45792b
xor ebx, ebx
push ebx
push 0x6db848
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
call fcn.00408e00
mov dword [ebp - 4], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x258]
lea ecx, [esi + 0x120]
push eax
mov dword [ebp - 0x254], ecx
call fcn.0045649a
mov ecx, dword [ebp - 0x258]
cmp ecx, dword [esi + 0x124]
je 0x457665
push 0xffffffffffffffff
lea eax, [ecx + 0x10]
push ebx
push eax
lea ecx, [ebp - 0x22c]
call fcn.00408d10
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.0046a480
mov edi, 0x200
jmp 0x4576aa
push dword [ebp - 0x250]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0041d570
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0046a480
add esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x250], eax
cmp eax, ebx
jg 0x457684
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x250], ebx
je 0x4578b0
cmp dword [ebp - 0x250], 0xffffffff
jne 0x4576ef
cmp eax, 0x2733
jne 0x4578b0
cmp dword [ebp - 0x218], 0x10
mov eax, dword [ebp - 0x22c]
jae 0x457704
lea eax, [ebp - 0x22c]
push eax
push str.HandleHttpRequest_request_s
mov edi, str.ReplayLocalServer
push edi
push 3
call fcn.0042fdf6
add esp, 0x10
push 4
push ebx
push str._r_n_r_n
lea ecx, [ebp - 0x22c]
call fcn.004298fb
cmp eax, ebx
jbe 0x45783d
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x248], bl
mov byte [ebp - 4], 1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x250], ebx
call fcn.0045673d
test al, al
je 0x457827
cmp dword [ebp - 0x234], 0x10
mov eax, dword [ebp - 0x248]
jae 0x4577a8
lea eax, [ebp - 0x248]
push dword [ebp - 0x250]
push dword [ebp - 0x260]
push eax
push str.HandleHttpRequest_platformId_s__gameId_d__index_d
push edi
push 3
call fcn.0042fdf6
mov eax, dword [ebp - 0x258]
add esp, 0x18
sub eax, ebx
je 0x45781d
dec eax
je 0x457811
dec eax
je 0x4577ff
dec eax
je 0x4577ed
dec eax
jne 0x457827
push dword [ebp - 0x250]
mov ecx, esi
push dword [ebp + 8]
call fcn.00456f64
jmp 0x457827
push dword [ebp - 0x250]
mov ecx, esi
push dword [ebp + 8]
call fcn.00456e85
jmp 0x457827
push dword [ebp - 0x250]
mov ecx, esi
push dword [ebp + 8]
call fcn.00456dae
jmp 0x457827
push dword [ebp + 8]
mov ecx, esi
call fcn.00456cda
jmp 0x457827
push dword [ebp + 8]
mov ecx, esi
call fcn.00456c06
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00408fa0
jmp 0x4578c5
mov eax, dword [ebp - 0x258]
cmp eax, dword [esi + 0x124]
jne 0x45789c
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004566c9
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x254]
push ebx
push eax
call fcn.00457461
mov ecx, dword [ebp - 0x254]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004572d8
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00408fa0
jmp 0x457917
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [eax + 0x10]
call fcn.00408d10
jmp 0x457917
push eax
push str.HandleHttpRequest_recv_error_u
push str.ReplayLocalServer
push 1
call fcn.0042fdf6
add esp, 0x10
mov ecx, dword [ebp - 0x254]
lea eax, [ebp + 8]
push eax
call fcn.004574eb
mov eax, dword [esi + 0x10]
xor ecx, ecx
cmp eax, ebx
jbe 0x45790e
lea edx, [esi + 0x14]
mov edi, dword [ebp + 8]
cmp dword [edx], edi
je 0x4578f1
inc ecx
add edx, 4
cmp ecx, eax
jb 0x4578e0
jmp 0x45790e
dec eax
cmp ecx, eax
jae 0x45790b
lea eax, [esi + ecx*4 + 0x14]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov edx, dword [esi + 0x10]
inc ecx
add eax, 4
dec edx
cmp ecx, edx
jb 0x4578fa
dec dword [esi + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x22c]
call fcn.00408fa0
jmp 0x45793d
push 0xffffffffffffffff
push str.HandleHttpRequest_error_s0x_x
push edi
push 1
call fcn.0042fdf6
add esp, 0x10
call fcn.00469be3
ret 4