Function at 0x4eb9a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59af67
mov eax, dword fs:[0]
push eax
mov eax, 0x1fc90
call fcn.00540100
mov eax, dword [0x5fae30]
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
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x1fc90], edi
cmp byte [esi + 0xf4], 0
jne 0x4ec16c
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0x1f9ff
lea ecx, [ebp - 0x1fa10]
push ecx
mov ecx, esi
call edx
mov ebx, eax
cmp ebx, edi
jle 0x4ec16c
cmp byte [esi + 0x194], 0
lea eax, [ebp - 0x1fa10]
mov dword [ebp - 0x1fc9c], ebx
mov dword [ebp - 0x1fc94], eax
jne 0x4ebed2
mov ecx, eax
push str._r_n_r_n
push ecx
mov byte [ebp + ebx - 0x1fa10], 0
call fcn.005407d0
add esp, 8
cmp eax, edi
jne 0x4ebacb
lea edx, [ebp - 0x1fa10]
push 0x5bd2d8
push edx
call fcn.005407d0
add esp, 8
cmp eax, edi
jne 0x4ebacb
mov byte [esi + 0xf4], 1
mov dword [ebp - 0x1fa18], 0xf
mov dword [ebp - 0x1fa1c], edi
mov byte [ebp - 0x1fa2c], 0
push 0x2f
push str.CWebSocket::OnSocketReceive___Received_bad_data
lea ecx, [ebp - 0x1fa2c]
mov dword [ebp - 4], edi
call fcn.00402a36
push edi
push edi
lea eax, [ebp - 0x1fa2c]
push eax
mov ecx, esi
call fcn.004056be
mov ecx, dword [esi + 0x190]
push esi
call fcn.004054d9
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x54]
call eax
lea ecx, [ebp - 0x1fa2c]
call fcn.0040583f
xor al, al
jmp 0x4ec16e
push edi
push 1
lea ecx, [ebp - 0x1fc88]
call fcn.004076c6
lea ecx, [ebp - 0x1fc98]
push ecx
push ebx
lea edx, [ebp - 0x1fa10]
push edx
lea ecx, [ebp - 0x1fc88]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1fc98], edi
call fcn.00407694
test al, al
jne 0x4ebb82
mov byte [esi + 0xf4], 1
mov dword [ebp - 0x1fa18], 0xf
mov dword [ebp - 0x1fa1c], edi
mov byte [ebp - 0x1fa2c], al
push 0x34
push str.CWebSocket::OnSocketReceive___Failed_to_parse_header
lea ecx, [ebp - 0x1fa2c]
mov byte [ebp - 4], 2
call fcn.00402a36
push edi
push edi
lea eax, [ebp - 0x1fa2c]
push eax
mov ecx, esi
call fcn.004056be
mov ecx, dword [esi + 0x190]
push esi
call fcn.004054d9
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x54]
call eax
lea ecx, [ebp - 0x1fa2c]
call fcn.0040583f
lea ecx, [ebp - 0x1fc88]
mov dword [ebp - 4], 0xffffffff
call fcn.0040867a
xor al, al
jmp 0x4ec16e
lea ecx, [ebp - 0x1fc88]
call fcn.00401d6b
mov ecx, 0xc8
cmp ax, cx
je 0x4ebc47
mov byte [esi + 0xf4], 1
mov dword [ebp - 0x1fa18], 0xf
mov dword [ebp - 0x1fa1c], edi
mov byte [ebp - 0x1fa2c], 0
mov bl, 3
lea ecx, [ebp - 0x1fc88]
mov byte [ebp - 4], bl
call fcn.00401d6b
movzx edx, ax
push edx
lea eax, [ebp - 0x1fa80]
push eax
call fcn.004080a8
push eax
lea ecx, [ebp - 0x1fa9c]
push str.CWebSocket::OnSocketReceive___Received_error_code_from_web_server:
push ecx
mov byte [ebp - 4], 4
call fcn.0040367f
add esp, 0x14
push eax
lea ecx, [ebp - 0x1fa2c]
mov byte [ebp - 4], 5
call fcn.00401604
lea ecx, [ebp - 0x1fa9c]
call fcn.0040583f
lea ecx, [ebp - 0x1fa80]
mov byte [ebp - 4], bl
call fcn.0040583f
push edi
push edi
lea edx, [ebp - 0x1fa2c]
push edx
mov ecx, esi
call fcn.004056be
mov ecx, dword [esi + 0x190]
push esi
call fcn.004054d9
mov eax, dword [esi + 0x54]
mov edx, dword [eax + 4]
lea ecx, [esi + 0x54]
call edx
jmp 0x4ebb5e
mov dword [ebp - 0x1faa4], 0xf
mov dword [ebp - 0x1faa8], edi
mov byte [ebp - 0x1fab8], 0
push str.content_length
lea ecx, [ebp - 0x1fa48]
mov byte [ebp - 4], 6
call fcn.00403dfa
lea eax, [ebp - 0x1fa48]
push eax
lea ecx, [ebp - 0x1fa80]
push ecx
lea ecx, [ebp - 0x1fc88]
mov byte [ebp - 4], 7
call fcn.00407b7b
push eax
lea ecx, [ebp - 0x1fab8]
mov byte [ebp - 4], 8
call fcn.00401604
lea ecx, [ebp - 0x1fa80]
call fcn.0040583f
lea ecx, [ebp - 0x1fa48]
mov byte [ebp - 4], 6
call fcn.0040583f
cmp dword [ebp - 0x1faa8], edi
jne 0x4ebe68
mov dword [ebp - 0x1fa18], 0xf
mov dword [ebp - 0x1fa1c], edi
mov byte [ebp - 0x1fa2c], 0
push str.connection
lea ecx, [ebp - 0x1fa48]
mov byte [ebp - 4], 9
call fcn.00403dfa
lea edx, [ebp - 0x1fa48]
push edx
lea eax, [ebp - 0x1fa80]
push eax
lea ecx, [ebp - 0x1fc88]
mov byte [ebp - 4], 0xa
call fcn.00407b7b
push eax
lea ecx, [ebp - 0x1fa2c]
mov byte [ebp - 4], 0xb
call fcn.00401604
lea ecx, [ebp - 0x1fa80]
call fcn.0040583f
lea ecx, [ebp - 0x1fa48]
mov byte [ebp - 4], 9
call fcn.0040583f
cmp dword [ebp - 0x1fa1c], edi
je 0x4ebd97
lea ecx, [ebp - 0x1fa2c]
push ecx
lea edx, [ebp - 0x1fa48]
push edx
call fcn.004072ca
push eax
lea eax, [ebp - 0x1fa80]
push eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1fc90], 1
call fcn.004069b0
push str.close
push eax
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x1fc90], 3
call fcn.00405173
add esp, 0x18
mov byte [ebp - 0x1fc89], 0
test al, al
je 0x4ebd9e
mov byte [ebp - 0x1fc89], 1
test byte [ebp - 0x1fc90], 2
je 0x4ebdb9
and dword [ebp - 0x1fc90], 0xfffffffd
lea ecx, [ebp - 0x1fa80]
call fcn.0040583f
test byte [ebp - 0x1fc90], 1
mov dword [ebp - 4], 9
je 0x4ebdd4
lea ecx, [ebp - 0x1fa48]
call fcn.0040583f
cmp byte [ebp - 0x1fc89], 0
je 0x4ebe59
mov byte [esi + 0xf4], 1
mov dword [ebp - 0x1fa88], 0xf
mov dword [ebp - 0x1fa8c], edi
mov byte [ebp - 0x1fa9c], 0
push 0x2c
push str.CWebSocket::OnSocketReceive___Invalid_header
lea ecx, [ebp - 0x1fa9c]
mov byte [ebp - 4], 0xe
call fcn.00402a36
push edi
push edi
lea ecx, [ebp - 0x1fa9c]
push ecx
mov ecx, esi
call fcn.004056be
mov ecx, dword [esi + 0x190]
push esi
call fcn.004054d9
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x54]
call eax
lea ecx, [ebp - 0x1fa9c]
call fcn.0040583f
lea ecx, [ebp - 0x1fa2c]
call fcn.0040583f
lea ecx, [ebp - 0x1fab8]
jmp 0x4ebb64
mov byte [esi + 0x195], 1
lea ecx, [ebp - 0x1fa2c]
jmp 0x4ebe94
lea ecx, [ebp - 0x1fab8]
push ecx
lea edx, [ebp - 0x1fa80]
push edx
call fcn.004072ca
push eax
mov byte [ebp - 4], 0xf
call fcn.00402e37
add esp, 0xc
mov dword [esi + 0x198], eax
lea ecx, [ebp - 0x1fa80]
call fcn.0040583f
mov eax, dword [ebp - 0x1fc98]
lea ecx, [ebp + eax - 0x1fa10]
mov dword [ebp - 0x1fc94], ecx
lea ecx, [ebp - 0x1fab8]
sub ebx, eax
mov byte [esi + 0x194], 1
call fcn.0040583f
lea ecx, [ebp - 0x1fc88]
mov dword [ebp - 4], 0xffffffff
call fcn.0040867a
cmp ebx, edi
je 0x4ec0eb
cmp dword [esi + 0x144], edi
jne 0x4ebf09
test ebx, ebx
je 0x4ec0e9
mov edx, dword [ebp - 0x1fc94]
lea eax, [edi + edx]
push eax
lea ecx, [esi + 0x1a0]
call fcn.00404eee
inc edi
cmp edi, ebx
jb 0x4ebeea
jmp 0x4ec0e9
xor ecx, ecx
mov dword [ebp - 0x1fa50], 7
mov dword [ebp - 0x1fa54], edi
mov word [ebp - 0x1fa64], cx
cmp byte [esi + 0x19c], 0
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x1fa64]
je 0x4ebf4b
push 0x5bd3dc
call fcn.00408a8f
mov byte [esi + 0x19c], 0
jmp 0x4ebf55
push 0x5bd3e4
call fcn.00408a8f
mov ecx, dword [ebp - 0x1fa64]
mov edx, 8
cmp dword [ebp - 0x1fa50], edx
jae 0x4ebf6e
lea ecx, [ebp - 0x1fa64]
cmp dword [esi + 0x148], edx
lea eax, [esi + 0x134]
jb 0x4ebf7e
mov eax, dword [eax]
push ecx
push eax
call fcn.0054009f
mov edi, eax
add esp, 8
test edi, edi
jne 0x4ec0b8
mov byte [esi + 0xf4], 1
mov dword [ebp - 0x1fa34], 0xf
mov dword [ebp - 0x1fa38], eax
mov byte [ebp - 0x1fa48], al
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax + esi + 4]
mov byte [ebp - 4], 0x11
call fcn.00504ee0
push eax
lea ecx, [ebp - 0x1fb44]
push ecx
call fcn.004080a8
mov ebx, eax
lea eax, [esi + 0x134]
push eax
lea edx, [ebp - 0x1fb28]
push edx
mov byte [ebp - 4], 0x12
call fcn.00406569
push eax
lea eax, [ebp - 0x1fb0c]
push str.CWebSocket::OnSocketReceive___Failed_to_open_file:
push eax
mov byte [ebp - 4], 0x13
call fcn.0040367f
push 0x5bd3ec
push eax
lea ecx, [ebp - 0x1faf0]
push ecx
mov byte [ebp - 4], 0x14
call fcn.00407c9d
push ebx
push eax
lea edx, [ebp - 0x1fad4]
push edx
mov byte [ebp - 4], 0x15
call fcn.00407cd9
add esp, 0x34
push eax
lea ecx, [ebp - 0x1fa48]
mov byte [ebp - 4], 0x16
call fcn.00401604
lea ecx, [ebp - 0x1fad4]
call fcn.0040583f
lea ecx, [ebp - 0x1faf0]
call fcn.0040583f
lea ecx, [ebp - 0x1fb0c]
call fcn.0040583f
lea ecx, [ebp - 0x1fb28]
call fcn.0040583f
lea ecx, [ebp - 0x1fb44]
mov byte [ebp - 4], 0x11
call fcn.0040583f
push edi
push edi
lea eax, [ebp - 0x1fa48]
push eax
mov ecx, esi
call fcn.004056be
mov ecx, dword [esi + 0x190]
push esi
call fcn.004054d9
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x54]
call eax
lea ecx, [ebp - 0x1fa48]
call fcn.0040583f
lea ecx, [ebp - 0x1fa64]
call fcn.00406dfc
xor al, al
jmp 0x4ec16e
mov ecx, dword [ebp - 0x1fc94]
push edi
push 1
push ebx
push ecx
call fcn.0053ff67
add dword [esi + 0x1b0], ebx
push edi
call fcn.0053fd9c
add esp, 0x14
lea ecx, [ebp - 0x1fa64]
mov dword [ebp - 4], 0xffffffff
call fcn.00406dfc
xor edi, edi
cmp byte [esi + 0x195], 0
jne 0x4ec14e
mov eax, dword [esi + 0x144]
cmp eax, edi
je 0x4ec110
mov edx, dword [esi + 0x1b0]
cmp edx, dword [esi + 0x198]
je 0x4ec124
cmp eax, edi
jne 0x4ec14e
mov eax, dword [esi + 0x1a4]
sub eax, dword [esi + 0x1a0]
cmp eax, dword [esi + 0x198]
jne 0x4ec14e
push edi
mov ecx, esi
mov byte [esi + 0xf4], 1
call fcn.00402450
mov ecx, dword [esi + 0x190]
push esi
call fcn.004054d9
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x54]
call eax
xor al, al
jmp 0x4ec16e
cmp dword [ebp - 0x1fc9c], 0x1f9ff
jne 0x4ec16c
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4ec16c
dec eax
push eax
mov ecx, esi
call fcn.00403f30
jmp 0x4ec16e
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.0053fd20
mov esp, ebp
pop ebp
ret 4