Function at 0x4b7de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff4bf
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.00457980
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004490d0
movzx eax, al
test eax, eax
jne 0x4b8440
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0048e8c0
lea ecx, [ebp - 0x38]
call fcn.0046ae20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00460f20
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004bb9d0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00463bc0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x38]
call fcn.004655f0
jmp 0x4b7e8a
lea ecx, [ebp - 0x20]
call fcn.004bdab0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x38]
call fcn.004c2bd0
push eax
lea ecx, [ebp - 0x20]
call fcn.0048ceb0
movzx ecx, al
test ecx, ecx
je 0x4b8419
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004490d0
movzx edx, al
test edx, edx
jne 0x4b8419
lea ecx, [ebp - 0x20]
call fcn.00496eb0
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4b7edb
jmp 0x4b8419
mov ecx, dword [ebp - 0x1c]
call fcn.004b15c0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
call fcn.0048e6b0
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.0043ffc0
mov dword [ebp - 0xf4], eax
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0044f430
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0044f090
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 0x4b8414
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3e5
jne 0x4b8206
push 0xffffffffffffffff
push str.dwError__ERROR_IO_PENDING
lea ecx, [ebp - 0x11]
call fcn.004b4d40
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 0x4b81f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x4b7fc1
jmp 0x4b81f5
mov dword [ebp - 0x24], 0
jmp 0x4b7fd3
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 5
jge 0x4b7ff7
push 0x3e8
lea ecx, [ebp - 0x18]
call fcn.0048e8a0
push eax
call fcn.004b6b10
add esp, 4
test eax, eax
jne 0x4b7ff5
jmp 0x4b7ff7
jmp 0x4b7fca
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 0x4b81f5
call fcn.0045d880
movzx eax, byte [eax + 0x38]
test eax, eax
je 0x4b81d7
push 0
lea ecx, [ebp - 0x2c]
call fcn.0044dcc0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
call fcn.004b15c0
push eax
push str.Tun_error._once._d
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0044ed70
add esp, 0xc
call fcn.0045d880
lea edx, [ebp - 0x98]
push edx
call fcn.0045e800
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 0x50eb48
push 0x301
lea edx, [ebp - 0x94]
push edx
call fcn.0044ef60
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 0x50eb4c
push 0x50eb68
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.0044e180
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.0044e180
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.0044e0e0
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.0044e180
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.0044e0e0
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.004432f0
push eax
call fcn.0045d880
mov ecx, eax
call fcn.00459d30
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x80]
call fcn.0044dfe0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x84]
call fcn.0044dfe0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.0044dfe0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.0044dfe0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.0044dfe0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.0044dfe0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.0044dfe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0044dfe0
lea ecx, [ebp - 0x18]
call fcn.004b5800
push 0
push 1
push 0
lea ecx, [ebp - 0x18]
call fcn.0045ab60
lea ecx, [ebp - 0x18]
call fcn.0048e6b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11]
call fcn.004b5190
jmp 0x4b8414
call fcn.0045d880
movzx edx, byte [eax + 0x38]
test edx, edx
je 0x4b8414
push 0
lea ecx, [ebp - 0x30]
call fcn.0044dcc0
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.0044ed70
add esp, 0xc
call fcn.0045d880
lea ecx, [ebp - 0xec]
push ecx
call fcn.0045e800
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 0x50eb8c
push 0x30d
lea ecx, [ebp - 0xe8]
push ecx
call fcn.0044ef60
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 0x50ebd0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.0044e180
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.0044e180
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.0044e0e0
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.0044e180
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.0044e0e0
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.004432f0
push eax
call fcn.0045d880
mov ecx, eax
call fcn.00459d30
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xd4]
call fcn.0044dfe0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xd8]
call fcn.0044dfe0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xdc]
call fcn.0044dfe0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xe0]
call fcn.0044dfe0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe4]
call fcn.0044dfe0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xe8]
call fcn.0044dfe0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xec]
call fcn.0044dfe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0044dfe0
jmp 0x4b7e82
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x543418
call fcn.00462cc0
lea ecx, [ebp - 0x38]
call fcn.004657d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004581d0
jmp 0x4b7e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00458750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret