Function at 0x4b7120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff395
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x541a34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.0046c2c0
test eax, eax
jne 0x4b716e
mov eax, dword [ebp - 0x10]
push eax
push 0x4b91d0
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.0045b2c0
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004490d0
movzx ecx, al
test ecx, ecx
jne 0x4b7be7
xor edx, edx
mov eax, dword [ebp - 0x10]
add eax, 0xa8
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.0043ffc0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xb8], eax
mov dword [ebp - 0x17c], 0x2000
mov dword [ebp - 0x180], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.0048e6b0
cmp dword [ebp - 0x14], 0
jne 0x4b7225
push str.CXyzTapWindows::OnReadTun
push 0x2000
mov ecx, 0x543418
call fcn.0046eac0
mov dword [ebp - 0x14], eax
jmp 0x4b7234
push 0
push 0x2000
mov ecx, dword [ebp - 0x14]
call fcn.0044e840
push 1
push 0x10
mov ecx, dword [ebp - 0x14]
call fcn.0044fe50
mov edx, dword [ebp - 0x10]
add edx, 0xa8
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044f430
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044f090
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4b7b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x3e5
jne 0x4b78c3
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4b7307
mov ecx, dword [ebp - 0x14]
call fcn.004a36d0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004a36d0
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044e840
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004bc010
test eax, eax
je 0x4b72f1
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x18]
xor eax, eax
add edx, dword [ebp - 0x24]
adc eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x4b78be
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x88]
mov eax, dword [ebp - 0x10]
mov edx, dword [edx]
mov ecx, dword [eax + 0x88]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
jmp 0x4b7339
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0xa
jge 0x4b7382
cmp dword [ebp - 0x1c], 0
jne 0x4b7382
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.0048e8a0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0xa8
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x1c], eax
jmp 0x4b7330
cmp dword [ebp - 0x1c], 0
je 0x4b73d2
mov ecx, dword [ebp - 0x14]
call fcn.004a36d0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004a36d0
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044e840
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004bc010
test eax, eax
je 0x4b73bc
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, dword [ebp - 0x24]
adc ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x4b78be
call fcn.0045d880
movzx edx, byte [eax + 0x38]
test edx, edx
je 0x4b7604
push 0
lea ecx, [ebp - 0x2c]
call fcn.0044dcc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call fcn.004acfc0
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
call fcn.004432f0
push eax
lea ecx, [ebp - 0x54]
call fcn.0044dcf0
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00486280
sub eax, 0xd
push eax
push str.read_tun_error___len:__d___s
lea edx, [ebp - 0x2c]
push edx
call fcn.0044ed70
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0044dfe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0044dfa0
call fcn.0045d880
lea eax, [ebp - 0xac]
push eax
call fcn.0045e800
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x60]
push edx
push 0x50ef48
push 0xac
lea eax, [ebp - 0xa8]
push eax
call fcn.0044ef60
add esp, 8
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x68]
push edx
push 0x50ef4c
push 0x50ef68
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0044e0e0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.0044e0e0
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x90]
call fcn.004432f0
push eax
call fcn.0045d880
mov ecx, eax
call fcn.00459d30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.0044dfe0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
call fcn.0044dfe0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x9c]
call fcn.0044dfe0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.0044dfe0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.0044dfe0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.0044dfe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0044dfe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044dfe0
mov eax, dword [ebp - 0x10]
add eax, 0xa8
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
jmp 0x4b763c
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xa
jge 0x4b7685
cmp dword [ebp - 0x1c], 0
jne 0x4b7685
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x80]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.0048e8a0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x1c], eax
jmp 0x4b7633
call fcn.0045d880
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x4b789d
push 0
lea ecx, [ebp - 0x34]
call fcn.0044dcc0
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xb0]
push eax
push str.read_tun_error_bCancel:_d_bGet:_d
lea ecx, [ebp - 0x34]
push ecx
call fcn.0044ed70
add esp, 0x10
call fcn.0045d880
lea edx, [ebp - 0x104]
push edx
call fcn.0045e800
add esp, 4
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xb8]
push ecx
push 0x50ef90
push 0xb3
lea edx, [ebp - 0x100]
push edx
call fcn.0044ef60
add esp, 8
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xc0]
push ecx
push 0x50ef94
push 0x50efb0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0xfc]
push eax
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0xc8]
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0xd0]
push edx
lea eax, [ebp - 0xf4]
push eax
call fcn.0044e0e0
add esp, 0xc
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0xe0]
push edx
lea eax, [ebp - 0xec]
push eax
call fcn.0044e0e0
add esp, 0xc
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xe8]
call fcn.004432f0
push eax
call fcn.0045d880
mov ecx, eax
call fcn.00459d30
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xec]
call fcn.0044dfe0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xf0]
call fcn.0044dfe0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xf4]
call fcn.0044dfe0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf8]
call fcn.0044dfe0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xfc]
call fcn.0044dfe0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x100]
call fcn.0044dfe0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104]
call fcn.0044dfe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0044dfe0
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 2
jle 0x4b78b9
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x20]
jne 0x4b78b9
jmp 0x4b7be7
jmp 0x4b719f
jmp 0x4b7b82
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x88]
mov eax, dword [ebp - 0x10]
mov edx, dword [edx]
mov ecx, dword [eax + 0x88]
mov eax, dword [edx + 4]
call eax
call fcn.0045d880
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x4b7af0
push 0
lea ecx, [ebp - 0x3c]
call fcn.0044dcc0
mov dword [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, str.read_error._d
push eax
lea edx, [ebp - 0x3c]
push edx
call fcn.0044ed70
add esp, 8
call fcn.0045d880
lea eax, [ebp - 0x174]
push eax
call fcn.0045e800
add esp, 4
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x10c]
push edx
push 0x50efc4
push 0xc2
lea eax, [ebp - 0x154]
push eax
call fcn.0044ef60
add esp, 8
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x114]
push edx
push str.CXyzTapWindows::OnReadTun_
push 0x50efe4
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x14c]
push ecx
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0x148]
push ecx
call fcn.0044e0e0
add esp, 0xc
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x158], edx
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x158]
push eax
lea ecx, [ebp - 0x144]
push ecx
call fcn.0044e180
add esp, 0xc
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x140]
push ecx
call fcn.0044e0e0
add esp, 0xc
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], edx
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x13c]
call fcn.004432f0
push eax
call fcn.0045d880
mov ecx, eax
call fcn.00459d30
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x140]
call fcn.0044dfe0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x144]
call fcn.0044dfe0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x148]
call fcn.0044dfe0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x14c]
call fcn.0044dfe0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x150]
call fcn.0044dfe0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x154]
call fcn.0044dfe0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x174]
call fcn.0044dfe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0044dfe0
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.0045df30
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x160], ecx
mov dword [ebp - 4], 0x1a
mov edx, dword [ebp - 0x160]
push edx
push str.tap_error:
lea eax, [ebp - 0x16c]
push eax
call fcn.004594c0
add esp, 0xc
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x168], ecx
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x168]
call fcn.004432f0
push eax
call fcn.00466c90
add esp, 8
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x16c]
call fcn.0044dfa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.0044dfa0
jmp 0x4b7be7
jmp 0x4b7be2
mov ecx, dword [ebp - 0x14]
call fcn.004a36d0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004a36d0
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044e840
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004bc010
test eax, eax
je 0x4b7bb8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x88]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x88]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, dword [ebp - 0x24]
adc ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x4b719f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret