Function at 0x4b3d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4feff5
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.004695e0
test eax, eax
jne 0x4b3dce
mov eax, dword [ebp - 0x10]
push eax
push 0x4b5e30
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.00459a90
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.004491e0
movzx ecx, al
test ecx, ecx
jne 0x4b4847
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.00443a60
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.0048af00
cmp dword [ebp - 0x14], 0
jne 0x4b3e85
push str.CXyzTapWindows::OnReadTun
push 0x2000
mov ecx, 0x543418
call fcn.0046bc50
mov dword [ebp - 0x14], eax
jmp 0x4b3e94
push 0
push 0x2000
mov ecx, dword [ebp - 0x14]
call fcn.0044e960
push 1
push 0x10
mov ecx, dword [ebp - 0x14]
call fcn.0044ff90
mov edx, dword [ebp - 0x10]
add edx, 0xa8
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044f550
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044f1b0
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 0x4b47e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x3e5
jne 0x4b4523
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 0x4b3f67
mov ecx, dword [ebp - 0x14]
call fcn.004ac890
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004ac890
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044e960
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004b8e20
test eax, eax
je 0x4b3f51
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 0x4b451e
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 0x4b3f99
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0xa
jge 0x4b3fe2
cmp dword [ebp - 0x1c], 0
jne 0x4b3fe2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.0048b0f0
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 0x4b3f90
cmp dword [ebp - 0x1c], 0
je 0x4b4032
mov ecx, dword [ebp - 0x14]
call fcn.004ac890
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004ac890
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044e960
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004b8e20
test eax, eax
je 0x4b401c
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 0x4b451e
call fcn.0045bf70
movzx edx, byte [eax + 0x38]
test edx, edx
je 0x4b4264
push 0
lea ecx, [ebp - 0x2c]
call fcn.0044de20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call fcn.004aa110
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.00443490
push eax
lea ecx, [ebp - 0x54]
call fcn.0044de50
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.00482920
sub eax, 0xd
push eax
push str.read_tun_error___len:__d___s
lea edx, [ebp - 0x2c]
push edx
call fcn.0044ee90
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0044e140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0044e100
call fcn.0045bf70
lea eax, [ebp - 0xac]
push eax
call fcn.0045cf00
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 0x50ef78
push 0xac
lea eax, [ebp - 0xa8]
push eax
call fcn.0044f080
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 0x50ef7c
push 0x50ef98
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0044e2c0
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.0044e2c0
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.0044e220
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.0044e2c0
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.0044e220
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.00443490
push eax
call fcn.0045bf70
mov ecx, eax
call fcn.00458500
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.0044e140
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
call fcn.0044e140
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x9c]
call fcn.0044e140
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.0044e140
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.0044e140
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.0044e140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0044e140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044e140
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 0x4b429c
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xa
jge 0x4b42e5
cmp dword [ebp - 0x1c], 0
jne 0x4b42e5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x80]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
call fcn.0048b0f0
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 0x4b4293
call fcn.0045bf70
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x4b44fd
push 0
lea ecx, [ebp - 0x34]
call fcn.0044de20
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.0044ee90
add esp, 0x10
call fcn.0045bf70
lea edx, [ebp - 0x104]
push edx
call fcn.0045cf00
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 0x50efc0
push 0xb3
lea edx, [ebp - 0x100]
push edx
call fcn.0044f080
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 0x50efc4
push 0x50efe0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0xfc]
push eax
call fcn.0044e2c0
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.0044e2c0
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.0044e220
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.0044e2c0
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.0044e220
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.00443490
push eax
call fcn.0045bf70
mov ecx, eax
call fcn.00458500
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xec]
call fcn.0044e140
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xf0]
call fcn.0044e140
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xf4]
call fcn.0044e140
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf8]
call fcn.0044e140
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xfc]
call fcn.0044e140
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x100]
call fcn.0044e140
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104]
call fcn.0044e140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0044e140
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 2
jle 0x4b4519
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x20]
jne 0x4b4519
jmp 0x4b4847
jmp 0x4b3dff
jmp 0x4b47e2
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.0045bf70
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x4b4750
push 0
lea ecx, [ebp - 0x3c]
call fcn.0044de20
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.0044ee90
add esp, 8
call fcn.0045bf70
lea eax, [ebp - 0x174]
push eax
call fcn.0045cf00
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 0x50eff4
push 0xc2
lea eax, [ebp - 0x154]
push eax
call fcn.0044f080
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 0x50f014
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.0044e2c0
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.0044e2c0
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.0044e220
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.0044e2c0
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.0044e220
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.00443490
push eax
call fcn.0045bf70
mov ecx, eax
call fcn.00458500
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x140]
call fcn.0044e140
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x144]
call fcn.0044e140
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x148]
call fcn.0044e140
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x14c]
call fcn.0044e140
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x150]
call fcn.0044e140
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x154]
call fcn.0044e140
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x174]
call fcn.0044e140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0044e140
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.0045c630
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.00457cc0
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.00443490
push eax
call fcn.00464040
add esp, 8
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x16c]
call fcn.0044e100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.0044e100
jmp 0x4b4847
jmp 0x4b4842
mov ecx, dword [ebp - 0x14]
call fcn.004ac890
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004ac890
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0044e960
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004b8e20
test eax, eax
je 0x4b4818
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 0x4b3dff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret