Function at 0x469a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x14
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x29], 0
jne 0x469ad5
mov dword [esi], 0
push 0x55d223
call fcn.0040e8d0
pop ecx
push eax
push 0x55d223
mov ecx, esi
call fcn.0040cb20
cmp dword [esi], 0
je 0x469ac7
mov ebx, dword [esi]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
mov edx, esi
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x35], 0
jne 0x469b7a
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x40]
lea eax, [ebp - 0xc]
push eax
push dword [0x55d1c8]
push 0x59edb0
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x469b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x469cbd
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x35], 1
jmp 0x469cbd
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x35], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x40]
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x10], 0
push dword [ebp - 0xc]
push 0x59edb0
lea ecx, [ebp - 0x10]
call fcn.0040cb20
mov edx, dword [ebp - 0x10]
mov dword [esi], edx
cmp dword [esi], 0
je 0x469b60
mov edx, dword [esi]
inc dword [edx]
cmp dword [ebp - 0x10], 0
je 0x469b6e
mov ecx, dword [ebp - 0x10]
call fcn.0040c8f0
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
push 0x1f4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x40]
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x469ba9
sub eax, 0x102
je 0x469cbd
jmp 0x469c6c
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x40]
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, 0
jne 0x469c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x30], eax
push dword [ebp - 0x1c]
call sym.X86RunHoudini.exe_FireSerialError
pop ecx
mov dword [esi], 0
push 0x55d223
call fcn.0040e8d0
pop ecx
push eax
push 0x55d223
mov ecx, esi
call fcn.0040cb20
cmp dword [esi], 0
je 0x469c09
mov ebx, dword [esi]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
mov edx, esi
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x35], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x40]
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x14], 0
push dword [ebp - 0xc]
push 0x59edb0
lea ecx, [ebp - 0x14]
call fcn.0040cb20
mov edx, dword [ebp - 0x14]
mov dword [esi], edx
cmp dword [esi], 0
je 0x469c52
mov edx, dword [esi]
inc dword [edx]
cmp dword [ebp - 0x14], 0
je 0x469c60
mov ecx, dword [ebp - 0x14]
call fcn.0040c8f0
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x30], eax
push dword [ebp - 0x1c]
call sym.X86RunHoudini.exe_FireSerialError
pop ecx
mov dword [esi], 0
push 0x55d223
call fcn.0040e8d0
pop ecx
push eax
push 0x55d223
mov ecx, esi
call fcn.0040cb20
cmp dword [esi], 0
je 0x469caf
mov ebx, dword [esi]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
mov edx, esi
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov dword [esi], 0
push 0x55d223
call fcn.0040e8d0
pop ecx
push eax
push 0x55d223
mov ecx, esi
call fcn.0040cb20
cmp dword [esi], 0
je 0x469ceb
mov ebx, dword [esi]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
mov edx, esi
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4