Function at 0x468980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x83c
add eax, 0xfffffbcd
push esi
cmp eax, 0x1e
push edi
ja case.default.0x468b40
xor ecx, ecx
mov cl, byte [eax + 0x468ecc]
jmp dword [ecx*4 + 0x468ea8]
mov edx, dword [esp + 0x850]
mov eax, dword [esp + 0x84c]
push edx
push eax
call fcn.00433910
mov esi, eax
add esp, 8
and esi, 0xfffffff
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov ecx, dword [esp + 0x84c]
push ecx
call fcn.00433640
mov esi, eax
add esp, 4
and esi, 0xfffffff
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov ecx, dword [esp + 0x84c]
lea edx, [esp + 0xc]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00433790
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x468e9d
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
pop edi
lea esi, [edx + edx]
or esi, eax
mov eax, esi
pop esi
add esp, 0x83c
ret
mov eax, dword [esp + 0x84c]
push 0
push eax
call fcn.00433b30
add esp, 8
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov eax, dword [esp + 0x850]
test eax, eax
je 0x468a7f
mov ecx, dword [0x4f26f8]
push eax
push 3
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
pop edi
mov eax, esi
pop esi
add esp, 0x83c
ret
mov edx, dword [0x4f26f8]
push 0x4d4768
push 3
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
pop edi
mov eax, esi
pop esi
add esp, 0x83c
ret
mov eax, dword [esp + 0x84c]
dec eax
je 0x468b05
dec eax
je 0x468add
dec eax
jne 0x468b20
mov eax, dword [esp + 0x850]
push 0
push 0
push 0
push eax
push 0x78c
call fcn.00466070
add esp, 0x14
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov ecx, dword [esp + 0x850]
push 0
push 0
push 0
push ecx
push 0x728
call fcn.00466070
add esp, 0x14
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov edx, dword [esp + 0x850]
push 0
push 0
push 0
push edx
push 0x6c4
call fcn.00466070
add esp, 0x14
xor esi, esi
pop edi
mov eax, esi
pop esi
add esp, 0x83c
ret
mov edi, dword [esp + 0x84c]
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x468b40
jmp dword [eax*4 + 0x468eec]
mov esi, dword [esp + 0x850]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x44]
mov eax, dword [esi]
push eax
push str.COM_d
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x44]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
jne 0x468b98
or esi, eax
pop edi
mov eax, esi
pop esi
add esp, 0x83c
ret
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x1c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov al, byte [esi + 8]
mov cl, byte [esi + 0xc]
mov edx, dword [esi + 4]
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], cl
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dl, byte [esi + 0x10]
push eax
push ecx
mov byte [esp + 0x44], dl
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x468bf3
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
add esp, 0x83c
ret
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468c5a
mov eax, dword [0x4f26dc]
mov ecx, dword [0x4d4758]
push esi
push 0x468780
push eax
push 0xa7
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edx, dword [esi]
mov dword [esi + 0x1c], eax
push 0x4d44b8
push edx
lea eax, [esp + 0x4c]
push str.COM_d___Log____s
push eax
call edi
mov edx, dword [esi + 0x1c]
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esi + 0x1c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
pop edi
mov eax, esi
pop esi
add esp, 0x83c
ret
mov dword [esi + 0x1c], 0
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov esi, dword [esp + 0x850]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x468c83
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
pop edi
mov eax, esi
pop esi
add esp, 0x83c
ret
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push edx
push edx
push 1
push edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [esp + 0x850]
cmp edi, 3
mov dword [esp + 0x20], eax
jne 0x468ce9
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x468d05
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x468d91
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x468d76
cmp edi, 3
mov eax, str._In__02d___02d_:
je 0x468d3b
mov eax, str.Out__02d___02d_:
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x24]
push ecx
push edx
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.004688c0
mov eax, dword [esi + 0x1c]
push str.Time_out_r_n
push eax
call fcn.004688c0
push 0
call fcn.00445c60
add esp, 0x24
mov edx, dword [esp + 0x20]
mov esi, 0xfffffffe
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov eax, dword [esi + 0x18]
lea ecx, [esp + 8]
push 1
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x468e25
cmp edi, 3
mov eax, str._In__02d___02d_:
je 0x468dbd
mov eax, str.Out__02d___02d_:
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x24]
push ecx
push edx
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.004688c0
mov eax, dword [esp + 0x20]
add esp, 0x18
test eax, eax
je 0x468e0d
push 1
push eax
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.0046eb80
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x54]
push edx
push eax
call fcn.004688c0
add esp, 0x18
mov ecx, dword [esi + 0x1c]
push 0x4ad430
push ecx
call fcn.004688c0
push 0
call fcn.00445c60
add esp, 0xc
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov esi, dword [esp + 0x850]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push str.__d:_d:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.00433260
mov esi, eax
add esp, 0x30
and esi, 0xfffffff
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret
mov esi, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
add esp, 0x83c
ret