Function at 0x4b4a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff11f
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x541a34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0
push 1
push 0
lea ecx, [ebp - 0x18]
call fcn.00456420
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004491e0
movzx eax, al
test eax, eax
jne 0x4b50a0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0048b110
lea ecx, [ebp - 0x38]
call fcn.004b1b10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0045f4f0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.0047e530
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00461fd0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x38]
call fcn.004ac1c0
jmp 0x4b4aea
lea ecx, [ebp - 0x20]
call fcn.0048c8e0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048b520
push eax
lea ecx, [ebp - 0x20]
call fcn.004b2020
movzx ecx, al
test ecx, ecx
je 0x4b5079
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004491e0
movzx edx, al
test edx, edx
jne 0x4b5079
lea ecx, [ebp - 0x20]
call fcn.004bab50
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4b4b3b
jmp 0x4b5079
mov ecx, dword [ebp - 0x1c]
call fcn.004ae3c0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
call fcn.0048af00
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x18]
call fcn.00443a60
mov dword [ebp - 0xf4], eax
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0044f550
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0044f1b0
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
jne 0x4b5074
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3e5
jne 0x4b4e66
push 0xffffffffffffffff
push str.dwError__ERROR_IO_PENDING
lea ecx, [ebp - 0x11]
call fcn.004b1b40
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4b4e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x4b4c21
jmp 0x4b4e55
mov dword [ebp - 0x24], 0
jmp 0x4b4c33
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 5
jge 0x4b4c57
push 0x3e8
lea ecx, [ebp - 0x18]
call fcn.0048b0f0
push eax
call fcn.004b3770
add esp, 4
test eax, eax
jne 0x4b4c55
jmp 0x4b4c57
jmp 0x4b4c2a
push 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4b4e55
call fcn.0045bf70
movzx eax, byte [eax + 0x38]
test eax, eax
je 0x4b4e37
push 0
lea ecx, [ebp - 0x2c]
call fcn.0044de20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
call fcn.004ae3c0
push eax
push str.Tun_error._once._d
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0044ee90
add esp, 0xc
call fcn.0045bf70
lea edx, [ebp - 0x98]
push edx
call fcn.0045cf00
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x50eb78
push 0x301
lea edx, [ebp - 0x94]
push edx
call fcn.0044f080
add esp, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x54]
push ecx
push 0x50eb7c
push 0x50eb98
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.0044e2c0
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.0044e2c0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.0044e220
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.0044e2c0
add esp, 0xc
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x74]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0044e220
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x7c]
call fcn.00443490
push eax
call fcn.0045bf70
mov ecx, eax
call fcn.00458500
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x80]
call fcn.0044e140
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x84]
call fcn.0044e140
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.0044e140
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.0044e140
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.0044e140
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.0044e140
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.0044e140
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0044e140
lea ecx, [ebp - 0x18]
call fcn.004b2460
push 0
push 1
push 0
lea ecx, [ebp - 0x18]
call fcn.00459330
lea ecx, [ebp - 0x18]
call fcn.0048af00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11]
call fcn.004b1ef0
jmp 0x4b5074
call fcn.0045bf70
movzx edx, byte [eax + 0x38]
test edx, edx
je 0x4b5074
push 0
lea ecx, [ebp - 0x30]
call fcn.0044de20
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_WriteFile_for_xyztun:_d
lea eax, [ebp - 0x30]
push eax
call fcn.0044ee90
add esp, 0xc
call fcn.0045bf70
lea ecx, [ebp - 0xec]
push ecx
call fcn.0045cf00
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0xa0]
push eax
push 0x50ebbc
push 0x30d
lea ecx, [ebp - 0xe8]
push ecx
call fcn.0044f080
add esp, 8
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xa8]
push eax
push str.CXyzTapWindows::OnWriteTun_
push 0x50ec00
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.0044e2c0
add esp, 0xc
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xb0]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.0044e2c0
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.0044e220
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.0044e2c0
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xd4]
push edx
call fcn.0044e220
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xd0]
call fcn.00443490
push eax
call fcn.0045bf70
mov ecx, eax
call fcn.00458500
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xd4]
call fcn.0044e140
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xd8]
call fcn.0044e140
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xdc]
call fcn.0044e140
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xe0]
call fcn.0044e140
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe4]
call fcn.0044e140
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xe8]
call fcn.0044e140
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xec]
call fcn.0044e140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0044e140
jmp 0x4b4ae2
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x543418
call fcn.00461140
lea ecx, [ebp - 0x38]
call fcn.004633d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00456bb0
jmp 0x4b4a80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004570d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret