Function at 0x473870
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 0x4738d5
mov dword [esi], 0
push 0x5c047c
call fcn.0040d340
pop ecx
push eax
push 0x5c047c
mov ecx, esi
call fcn.00589f70
cmp dword [esi], 0
je 0x4738c7
mov ebx, dword [esi]
mov edx, dword [0x63df30]
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
push dword [ebp - 0x1c]
call fcn.00473810
pop ecx
cmp al, 0
jne 0x47391e
mov dword [esi], 0
push 0x5c047c
call fcn.0040d340
pop ecx
push eax
push 0x5c047c
mov ecx, esi
call fcn.00589f70
cmp dword [esi], 0
je 0x473910
mov ebx, dword [esi]
mov edx, dword [0x63df30]
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 0x4739ca
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x4c]
lea eax, [ebp - 0xc]
push eax
push dword [0x5c00a8]
push 0x64ed48
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x473975
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00472d10
pop ecx
cmp eax, 0x3e5
jne 0x473b1b
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x35], 1
jmp 0x473b1b
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x35], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x4c]
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x10], 0
push dword [ebp - 0xc]
push 0x64ed48
lea ecx, [ebp - 0x10]
call fcn.00589f70
mov edx, dword [ebp - 0x10]
mov dword [esi], edx
cmp dword [esi], 0
je 0x4739b0
mov edx, dword [esi]
inc dword [edx]
cmp dword [ebp - 0x10], 0
je 0x4739be
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
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 + 0x4c]
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 0x4739f9
sub eax, 0x102
je 0x473b1b
jmp 0x473ac3
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x4c]
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, 0
jne 0x473a6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00472d10
pop ecx
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 0x5c047c
call fcn.0040d340
pop ecx
push eax
push 0x5c047c
mov ecx, esi
call fcn.00589f70
cmp dword [esi], 0
je 0x473a60
mov ebx, dword [esi]
mov edx, dword [0x63df30]
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 + 0x4c]
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x14], 0
push dword [ebp - 0xc]
push 0x64ed48
lea ecx, [ebp - 0x14]
call fcn.00589f70
mov edx, dword [ebp - 0x14]
mov dword [esi], edx
cmp dword [esi], 0
je 0x473aa9
mov edx, dword [esi]
inc dword [edx]
cmp dword [ebp - 0x14], 0
je 0x473ab7
mov ecx, dword [ebp - 0x14]
call fcn.00589d70
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00472d10
pop ecx
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 0x5c047c
call fcn.0040d340
pop ecx
push eax
push 0x5c047c
mov ecx, esi
call fcn.00589f70
cmp dword [esi], 0
je 0x473b0d
mov ebx, dword [esi]
mov edx, dword [0x63df30]
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 0x5c047c
call fcn.0040d340
pop ecx
push eax
push 0x5c047c
mov ecx, esi
call fcn.00589f70
cmp dword [esi], 0
je 0x473b49
mov ebx, dword [esi]
mov edx, dword [0x63df30]
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