Function at 0x464760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f08b
mov eax, dword fs:[0]
push eax
mov eax, 0x1fbd4
call fcn.004ae7f0
mov eax, dword [0x5f7448]
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, ecx
mov dword [ebp - 0x1fbd0], esi
xor ecx, ecx
mov dword [ebp - 0x1fbcc], ecx
cmp byte [esi + 0x170], cl
jne 0x465038
mov eax, dword [esi]
push 0x1f9ff
lea ecx, [ebp - 0x1fa10]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
jle 0x465038
cmp byte [esi + 0x1e0], 0
lea edi, [ebp - 0x1fa10]
mov dword [ebp - 0x1fbdc], ebx
mov dword [ebp - 0x1fbd4], edi
jne 0x464d49
cmp ebx, 0x1fa00
jae 0x464d95
mov eax, edi
push str._r_n_r_n
push eax
mov byte [ebp + ebx - 0x1fa10], 0
call fcn.004b07f0
add esp, 8
test eax, eax
jne 0x4648a6
mov eax, edi
push 0x58253c
push eax
call fcn.004b07f0
add esp, 8
test eax, eax
jne 0x4648a6
mov dword [ebp - 0x1fa18], eax
mov dword [ebp - 0x1fa14], eax
mov byte [esi + 0x170], 1
mov dword [ebp - 0x1fa14], 0xf
mov dword [ebp - 0x1fa18], eax
mov byte [ebp - 0x1fa28], al
mov dword [ebp - 4], eax
push str.CWebSocket::OnSocketReceive___Received_bad_data
lea ecx, [ebp - 0x1fa28]
call fcn.0040a160
push 0
push 0
lea eax, [ebp - 0x1fa28]
push eax
mov ecx, esi
call fcn.004656a0
mov ecx, dword [esi + 0x1dc]
push esi
call fcn.004657c0
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fa28]
call fcn.004050f0
xor al, al
jmp 0x46503a
push 0
push 1
lea ecx, [ebp - 0x1fbc4]
call fcn.0042c080
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1fbd8]
push eax
push ebx
lea eax, [ebp - 0x1fa10]
push eax
lea ecx, [ebp - 0x1fbc4]
mov dword [ebp - 0x1fbd8], 0
call fcn.0042e310
test al, al
jne 0x464980
mov dword [ebp - 0x1fa18], 0
mov dword [ebp - 0x1fa14], 0
mov byte [esi + 0x170], 1
mov dword [ebp - 0x1fa14], 0xf
mov dword [ebp - 0x1fa18], 0
mov byte [ebp - 0x1fa28], al
mov byte [ebp - 4], 2
push str.CWebSocket::OnSocketReceive___Failed_to_parse_header
lea ecx, [ebp - 0x1fa28]
call fcn.0040a160
push 0
push 0
lea eax, [ebp - 0x1fa28]
push eax
mov ecx, esi
call fcn.004656a0
mov ecx, dword [esi + 0x1dc]
push esi
call fcn.004657c0
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1fa28]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fbc4]
call fcn.0042c2d0
xor al, al
jmp 0x46503a
lea ecx, [ebp - 0x1fbc4]
call fcn.00498620
mov ecx, 0xc8
cmp ax, cx
je 0x464a3a
mov dword [ebp - 0x1fa18], 0
mov dword [ebp - 0x1fa14], 0
mov byte [esi + 0x170], 1
mov dword [ebp - 0x1fa14], 0xf
mov dword [ebp - 0x1fa18], 0
mov byte [ebp - 0x1fa28], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1fbc4]
call fcn.00498620
movzx eax, ax
push eax
lea eax, [ebp - 0x1fa70]
push eax
call fcn.00425090
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x1fa40]
push str.CWebSocket::OnSocketReceive___Received_error_code_from_web_server:
push eax
call fcn.00407110
add esp, 0x14
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1fa28]
call fcn.00405120
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1fa40]
call fcn.004050f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1fa70]
call fcn.004050f0
jmp 0x464931
mov dword [ebp - 0x1fa48], 0
mov dword [ebp - 0x1fa44], 0
mov dword [ebp - 0x1fa44], 0xf
mov dword [ebp - 0x1fa48], 0
mov byte [ebp - 0x1fa58], 0
mov byte [ebp - 4], 6
push str.content_length
lea ecx, [ebp - 0x1fa40]
call fcn.00405090
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1fa40]
push eax
lea eax, [ebp - 0x1fa70]
push eax
lea ecx, [ebp - 0x1fbc4]
call fcn.0042e990
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1fa58]
call fcn.00405120
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1fa70]
call fcn.004050f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1fa40]
call fcn.004050f0
cmp dword [ebp - 0x1fa48], 0
jne 0x464cd4
mov dword [ebp - 0x1fa18], 0
mov dword [ebp - 0x1fa14], 0
mov dword [ebp - 0x1fa14], 0xf
mov dword [ebp - 0x1fa18], 0
mov byte [ebp - 0x1fa28], 0
mov byte [ebp - 4], 9
push str.connection
lea ecx, [ebp - 0x1fa40]
call fcn.00405090
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1fa40]
push eax
lea eax, [ebp - 0x1fa70]
push eax
lea ecx, [ebp - 0x1fbc4]
call fcn.0042e990
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x1fa28]
call fcn.00405120
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1fa70]
call fcn.004050f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1fa40]
call fcn.004050f0
cmp dword [ebp - 0x1fa18], 0
je 0x464bc5
lea eax, [ebp - 0x1fa28]
push eax
lea eax, [ebp - 0x1fa40]
push eax
call fcn.00427150
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x1fa70]
push eax
mov dword [ebp - 0x1fbcc], 1
call fcn.0042da10
mov dword [ebp - 4], 0xd
mov ecx, 3
push str.close
push eax
mov dword [ebp - 0x1fbcc], ecx
call fcn.0043f600
add esp, 0x18
mov byte [ebp - 0x1fbc5], 0
test al, al
je 0x464bcc
mov byte [ebp - 0x1fbc5], 1
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x1fbcc]
test al, 2
je 0x464bf7
and eax, 0xfffffffd
lea ecx, [ebp - 0x1fa70]
mov dword [ebp - 0x1fbcc], eax
call fcn.004050f0
mov eax, dword [ebp - 0x1fbcc]
mov dword [ebp - 4], 9
test al, 1
je 0x464c16
and eax, 0xfffffffe
lea ecx, [ebp - 0x1fa40]
mov dword [ebp - 0x1fbcc], eax
call fcn.004050f0
cmp byte [ebp - 0x1fbc5], 0
je 0x464cc1
mov dword [ebp - 0x1fa30], 0
mov dword [ebp - 0x1fa2c], 0
mov byte [esi + 0x170], 1
mov dword [ebp - 0x1fa2c], 0xf
mov dword [ebp - 0x1fa30], 0
mov byte [ebp - 0x1fa40], 0
mov byte [ebp - 4], 0xe
push str.CWebSocket::OnSocketReceive___Invalid_header
lea ecx, [ebp - 0x1fa40]
call fcn.0040a160
push 0
push 0
lea eax, [ebp - 0x1fa40]
push eax
mov ecx, esi
call fcn.004656a0
mov ecx, dword [esi + 0x1dc]
push esi
call fcn.004657c0
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
call dword [eax + 4]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1fa40]
call fcn.004050f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1fa28]
call fcn.004050f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1fa58]
jmp 0x464962
mov byte [esi + 0x1e1], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1fa28]
jmp 0x464d04
lea eax, [ebp - 0x1fa58]
push eax
lea eax, [ebp - 0x1fa70]
push eax
call fcn.00427150
mov byte [ebp - 4], 0xf
push eax
call fcn.00461e20
add esp, 0xc
mov dword [esi + 0x1e4], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1fa70]
call fcn.004050f0
sub ebx, dword [ebp - 0x1fbd8]
lea edi, [ebp - 0x1fa10]
add edi, dword [ebp - 0x1fbd8]
mov byte [esi + 0x1e0], 1
mov dword [ebp - 0x1fbd4], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1fa58]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fbc4]
call fcn.0042c2d0
test ebx, ebx
je 0x464fb8
cmp dword [esi + 0x1b8], 0
jne 0x464d9a
xor edi, edi
test ebx, ebx
je 0x464fb8
lea ecx, [esi + 0x1ec]
mov esi, dword [ebp - 0x1fbd4]
mov dword [ebp - 0x1fbe0], ecx
lea eax, [edi + esi]
push eax
call fcn.00405b70
mov ecx, dword [ebp - 0x1fbe0]
inc edi
cmp edi, ebx
jb 0x464d76
mov esi, dword [ebp - 0x1fbd0]
jmp 0x464fb8
call fcn.004b1037
xor eax, eax
mov dword [ebp - 0x1fa18], 0
mov dword [ebp - 0x1fa14], 0
mov dword [ebp - 0x1fa14], 7
mov dword [ebp - 0x1fa18], 0
mov word [ebp - 0x1fa28], ax
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x1fa28]
cmp byte [esi + 0x1e8], al
je 0x464df3
push 0x57e5fc
call fcn.004039a0
mov byte [esi + 0x1e8], 0
jmp 0x464dfd
push 0x5829f4
call fcn.004039a0
cmp dword [ebp - 0x1fa14], 8
lea ecx, [ebp - 0x1fa28]
cmovae ecx, dword [ebp - 0x1fa28]
cmp dword [esi + 0x1bc], 8
lea eax, [esi + 0x1a8]
jb 0x464e22
mov eax, dword [eax]
push ecx
push eax
call fcn.004ad4a2
add esp, 8
mov dword [ebp - 0x1fbd0], eax
test eax, eax
jne 0x464f88
mov dword [ebp - 0x1fa30], eax
mov dword [ebp - 0x1fa2c], eax
mov byte [esi + 0x170], 1
mov dword [ebp - 0x1fa2c], 0xf
mov dword [ebp - 0x1fa30], eax
mov byte [ebp - 0x1fa40], al
mov byte [ebp - 4], 0x11
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00478a60
push eax
lea eax, [ebp - 0x1fab8]
push eax
call fcn.00425090
mov edi, eax
mov byte [ebp - 4], 0x12
lea eax, [esi + 0x1a8]
push eax
lea eax, [ebp - 0x1faa0]
push eax
call fcn.00461ee0
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x1fa88]
push str.CWebSocket::OnSocketReceive___Failed_to_open_file:
push eax
call fcn.00407110
mov byte [ebp - 4], 0x14
push str._with_error:
push eax
lea eax, [ebp - 0x1fa58]
push eax
call fcn.00407080
mov byte [ebp - 4], 0x15
push edi
push eax
lea eax, [ebp - 0x1fa70]
push eax
call fcn.00406fc0
add esp, 0x34
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x1fa40]
call fcn.00405120
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x1fa70]
call fcn.004050f0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1fa58]
call fcn.004050f0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1fa88]
call fcn.004050f0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1faa0]
call fcn.004050f0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1fab8]
call fcn.004050f0
push 0
push 0
lea eax, [ebp - 0x1fa40]
push eax
mov ecx, esi
call fcn.004656a0
mov ecx, dword [esi + 0x1dc]
push esi
call fcn.004657c0
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1fa40]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fa28]
call fcn.00403930
xor al, al
jmp 0x46503a
push eax
push 1
push ebx
push edi
call fcn.004ad424
push dword [ebp - 0x1fbd0]
add dword [esi + 0x1f8], ebx
call fcn.004ad256
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fa28]
call fcn.00403930
cmp byte [esi + 0x1e1], 0
jne 0x46501a
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
je 0x464fdd
mov eax, dword [esi + 0x1f8]
cmp eax, dword [esi + 0x1e4]
je 0x464ff1
test ecx, ecx
jne 0x46501a
mov eax, dword [esi + 0x1f0]
sub eax, dword [esi + 0x1ec]
cmp eax, dword [esi + 0x1e4]
jne 0x46501a
push 0
mov ecx, esi
mov byte [esi + 0x170], 1
call fcn.00465590
mov ecx, dword [esi + 0x1dc]
push esi
call fcn.004657c0
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
call dword [eax + 4]
xor al, al
jmp 0x46503a
cmp dword [ebp - 0x1fbdc], 0x1f9ff
jne 0x465038
mov eax, dword [ebp + 8]
test eax, eax
je 0x465038
dec eax
push eax
mov ecx, esi
call fcn.00464760
jmp 0x46503a
mov al, 1
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.004adbd4
mov esp, ebp
pop ebp
ret 4