Function at 0x426ae0
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 0x426b45
mov dword [esi], 0
push 0x4b0e33
call fcn.00403a30
pop ecx
push eax
push 0x4b0e33
mov ecx, esi
call fcn.00401db0
cmp dword [esi], 0
je 0x426b37
mov ebx, dword [esi]
mov edx, dword [0x4a8218]
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 0x426bea
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x40]
lea eax, [ebp - 0xc]
push eax
push dword [0x4b0dd8]
push 0x4d8d18
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x426b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x426d2d
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x35], 1
jmp 0x426d2d
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 0x4d8d18
lea ecx, [ebp - 0x10]
call fcn.00401db0
mov edx, dword [ebp - 0x10]
mov dword [esi], edx
cmp dword [esi], 0
je 0x426bd0
mov edx, dword [esi]
inc dword [edx]
cmp dword [ebp - 0x10], 0
je 0x426bde
mov ecx, dword [ebp - 0x10]
call fcn.00401b80
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 0x426c19
sub eax, 0x102
je 0x426d2d
jmp 0x426cdc
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 0x426c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x30], eax
push dword [ebp - 0x1c]
call sym.X86HoudiniConsole.exe_FireSerialError
pop ecx
mov dword [esi], 0
push 0x4b0e33
call fcn.00403a30
pop ecx
push eax
push 0x4b0e33
mov ecx, esi
call fcn.00401db0
cmp dword [esi], 0
je 0x426c79
mov ebx, dword [esi]
mov edx, dword [0x4a8218]
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 0x4d8d18
lea ecx, [ebp - 0x14]
call fcn.00401db0
mov edx, dword [ebp - 0x14]
mov dword [esi], edx
cmp dword [esi], 0
je 0x426cc2
mov edx, dword [esi]
inc dword [edx]
cmp dword [ebp - 0x14], 0
je 0x426cd0
mov ecx, dword [ebp - 0x14]
call fcn.00401b80
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.X86HoudiniConsole.exe_FireSerialError
pop ecx
mov dword [esi], 0
push 0x4b0e33
call fcn.00403a30
pop ecx
push eax
push 0x4b0e33
mov ecx, esi
call fcn.00401db0
cmp dword [esi], 0
je 0x426d1f
mov ebx, dword [esi]
mov edx, dword [0x4a8218]
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 0x4b0e33
call fcn.00403a30
pop ecx
push eax
push 0x4b0e33
mov ecx, esi
call fcn.00401db0
cmp dword [esi], 0
je 0x426d5b
mov ebx, dword [esi]
mov edx, dword [0x4a8218]
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