Function at 0x44dc30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push edi
xor edi, edi
cmp dword [esi + 0x110], edi
jne 0x44df6a
mov ecx, dword [esi + 0x14c]
mov edx, dword [esi + 0x150]
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], edx
mov edx, dword [esi + 0x158]
mov dword [esi + 0x168], edx
mov dword [esi + 0x164], edi
mov ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x44dc89
mov edx, dword [eax + 8]
cmp edx, edi
jl 0x44dc89
mov ebx, edx
mov dword [esp + 0xc], edx
jmp 0x44dc8f
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp ecx, edi
je 0x44dc9d
cmp dword [eax + 8], edi
jl 0x44dc9d
mov edi, dword [eax + 4]
add edi, ecx
mov edx, dword [esi + 0x168]
test edx, edx
je 0x44dcef
mov eax, dword [esi + 0x164]
test eax, eax
jl 0x44dcef
cmp ebx, 0xf4240
jae 0x44dcef
mov ecx, dword [esi + 0x160]
lea ebx, [ecx + eax]
add ebx, dword [esp + 0xc]
cmp ebx, dword [esi + 0x15c]
jg 0x44dcef
add ecx, edx
mov edx, dword [esp + 0xc]
add ecx, eax
add eax, edx
test ecx, ecx
mov dword [esi + 0x164], eax
je 0x44dcef
push edx
push edi
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x44dd16
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44dd16
push 0x7bb
push str.._tun.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov eax, dword [esi + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x44dd4e
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44dd4e
push 0x7be
push str.._tun.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
cmp dword [esi + 0x168], 0
je 0x44dd65
mov eax, dword [esi + 0x164]
test eax, eax
jl 0x44dd65
mov edx, eax
jmp 0x44dd67
xor edx, edx
mov ecx, dword [esi + 0x168]
test ecx, ecx
je 0x44dd84
cmp dword [esi + 0x164], 0
jl 0x44dd84
mov eax, dword [esi + 0x160]
add eax, ecx
jmp 0x44dd86
xor eax, eax
lea ecx, [esi + 0x114]
push ecx
lea edi, [esi + 0x128]
push edi
push edx
mov edx, dword [esi + 0xb0]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44de50
mov eax, dword [esi + 0x124]
push eax
mov dword [esi + 0x110], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x44dded
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44dded
push 0x7cd
push str.._tun.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
cmp dword [0x5426d0], 9
mov dword [esi + 0x130], 0
jb 0x44df6a
push 0x46000089
call fcn.00408960
add esp, 4
test eax, eax
je 0x44df6a
cmp dword [esi + 0x168], 0
je 0x44de2c
mov eax, dword [esi + 0x164]
test eax, eax
jge 0x44de2e
xor eax, eax
mov ecx, dword [edi]
push ecx
push eax
push str.WIN32_I_O:_TAP_Write_immediate_return___d__d_
push 0x46000089
call fcn.00408640
mov eax, dword [esi + 0x110]
add esp, 0x10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x44dec6
cmp dword [0x5426d0], 9
mov dword [esi + 0x110], 1
mov dword [esi + 0x130], eax
jb 0x44df6a
push 0x46000089
call fcn.00408960
add esp, 4
test eax, eax
je 0x44df6a
cmp dword [esi + 0x168], 0
je 0x44dea5
mov eax, dword [esi + 0x164]
test eax, eax
jge 0x44dea7
xor eax, eax
push eax
push str.WIN32_I_O:_TAP_Write_queued___d_
push 0x46000089
call fcn.00408640
mov eax, dword [esi + 0x110]
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x124]
xor edi, edi
push edx
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x44df04
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44df04
push 0x7e2
push str.._tun.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
cmp dword [0x5426d0], 9
mov dword [esi + 0x110], 2
mov dword [esi + 0x130], ebx
jb 0x44df61
push 0x46000089
call fcn.00408960
add esp, 4
test eax, eax
je 0x44df61
cmp dword [esi + 0x168], edi
je 0x44df42
mov eax, dword [esi + 0x164]
cmp eax, edi
jl 0x44df42
mov edi, eax
lea ecx, [esp + 0xc]
mov edx, ebx
call fcn.00408fd0
push eax
push edi
push str.WIN32_I_O:_TAP_Write_error___d__:__s
push 0x46000089
call fcn.00408640
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00438d30
mov eax, dword [esi + 0x110]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret