Function at 0x408e36
Capabilities:
Create thread
Read file on windows
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov byte [ebp - 0x5c], 5
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov eax, 1
test eax, eax
je 0x408e9f
push 0x14
push 0
push 0x4525c0
call fcn.00426020
add esp, 0xc
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4525d0], eax
push 0x14
push 0
push 0x4525a0
call fcn.00426020
add esp, 0xc
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4525b0], eax
mov dword [0x44d634], 1
mov dword [0x44d62c], 0
cmp dword [0x44d634], 0
je 0x409a71
push 0x4525a0
lea ecx, [ebp - 8]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
mov eax, dword [0x4514a0]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x408f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x408f0c
push 1
lea ecx, [ebp - 8]
push ecx
push 0x4525a0
mov edx, dword [0x4514a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x408f2d
call fcn.00408455
test eax, eax
jne 0x408f2d
push str._SYSTEM__Communication_Disconnect_Error_n
call fcn.0040762a
add esp, 4
jmp 0x409a71
mov dword [ebp - 0x54], 0
jmp 0x408f3f
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 8]
jae 0x409a6c
cmp dword [ebp - 0x50], 0
je 0x409335
mov dword [ebp - 0x50], 0
cmp dword [0x44d628], 0
je 0x4090ac
cmp dword [0x44d648], 5
jge 0x409066
mov edx, dword [0x44d648]
mov eax, dword [ebp - 0x54]
mov cl, byte [ebp + eax - 0x48]
mov byte [edx + 0x450300], cl
mov edx, dword [0x44d648]
add edx, 1
mov dword [0x44d648], edx
cmp dword [0x44d648], 5
jl 0x409064
mov eax, dword [0x44d648]
mov byte [eax + 0x450300], 0
mov ecx, dword [0x44d650]
mov dword [0x44d64c], ecx
push 0x450300
call fcn.00425644
add esp, 4
mov dword [0x44d650], eax
mov dword [0x44d644], 0
cmp dword [0x453d24], 0
je 0x409008
mov edx, dword [0x44d64c]
cmp edx, dword [0x44d650]
jge 0x409008
mov eax, dword [0x453d24]
push eax
call fcn.00424f83
add esp, 4
mov dword [0x453d24], 0
cmp dword [0x453d24], 0
je 0x40901f
mov ecx, dword [0x44d64c]
cmp ecx, dword [0x44d650]
jge 0x40905a
push 1
mov edx, dword [0x44d650]
add edx, 1
push edx
call fcn.00424fbb
add esp, 8
mov dword [0x453d24], eax
cmp dword [0x453d24], 0
jne 0x409058
mov dword [0x44d650], 0
push str._SYSTEM__Run_Parameter_Buffer_Initial_Error_2_n
call fcn.0040762a
add esp, 4
jmp 0x409064
mov eax, dword [0x44d64c]
mov dword [0x44d650], eax
jmp 0x4090a7
mov ecx, dword [0x44d644]
cmp ecx, dword [0x44d650]
jl 0x409083
push str._SYSTEM__Run_Parameter_Buffer_Overflow_Error_2_n
call fcn.0040762a
add esp, 4
jmp 0x4090a7
mov edx, dword [0x453d24]
add edx, dword [0x44d644]
mov eax, dword [ebp - 0x54]
mov cl, byte [ebp + eax - 0x48]
mov byte [edx], cl
mov edx, dword [0x44d644]
add edx, 1
mov dword [0x44d644], edx
jmp 0x409330
cmp dword [0x44d62c], 0
je 0x4092e7
mov eax, dword [0x44d654]
cmp dword [eax*4 + 0x44f300], 5
jge 0x40927a
mov ecx, dword [0x44d654]
imul ecx, ecx, 7
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x44f300]
mov edx, dword [ebp - 0x54]
mov dl, byte [ebp + edx - 0x48]
mov byte [ecx + eax + 0x452f20], dl
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x44f300]
add ecx, 1
mov edx, dword [0x44d654]
mov dword [edx*4 + 0x44f300], ecx
mov eax, dword [0x44d654]
cmp dword [eax*4 + 0x44f300], 5
jl 0x409278
mov ecx, dword [0x44d654]
imul ecx, ecx, 7
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x44f300]
mov byte [ecx + eax + 0x452f20], 0
mov ecx, dword [0x44d654]
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x451da0]
mov dword [ecx*4 + 0x44fb00], eax
mov ecx, dword [0x44d654]
imul ecx, ecx, 7
add ecx, 0x452f20
push ecx
call fcn.00425644
add esp, 4
mov edx, dword [0x44d654]
mov dword [edx*4 + 0x451da0], eax
mov eax, dword [0x44d654]
mov dword [eax*4 + 0x450ca0], 0
mov ecx, dword [0x44d654]
cmp dword [ecx*4 + 0x452620], 0
je 0x4091de
mov edx, dword [0x44d654]
mov eax, dword [0x44d654]
mov ecx, dword [edx*4 + 0x44fb00]
cmp ecx, dword [eax*4 + 0x451da0]
jge 0x4091de
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x452620]
push eax
call fcn.00424f83
add esp, 4
mov ecx, dword [0x44d654]
mov dword [ecx*4 + 0x452620], 0
mov edx, dword [0x44d654]
cmp dword [edx*4 + 0x452620], 0
je 0x409209
mov eax, dword [0x44d654]
mov ecx, dword [0x44d654]
mov edx, dword [eax*4 + 0x44fb00]
cmp edx, dword [ecx*4 + 0x451da0]
jge 0x40925f
push 1
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x451da0]
add ecx, 1
push ecx
call fcn.00424fbb
add esp, 8
mov edx, dword [0x44d654]
mov dword [edx*4 + 0x452620], eax
mov eax, dword [0x44d654]
cmp dword [eax*4 + 0x452620], 0
jne 0x40925d
mov ecx, dword [0x44d654]
mov dword [ecx*4 + 0x451da0], 0
push str._SYSTEM__Event_Receive_Buffer_Initial_Error_2_n
call fcn.0040762a
add esp, 4
jmp 0x409278
mov edx, dword [0x44d654]
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x44fb00]
mov dword [edx*4 + 0x451da0], ecx
jmp 0x4092e5
mov edx, dword [0x44d654]
mov eax, dword [0x44d654]
mov ecx, dword [edx*4 + 0x450ca0]
cmp ecx, dword [eax*4 + 0x451da0]
jl 0x4092a4
push str._SYSTEM__Event_Receive_Buffer_Overflow_Error_2_n
call fcn.0040762a
add esp, 4
jmp 0x4092e5
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x452620]
mov ecx, dword [0x44d654]
mov edx, dword [ecx*4 + 0x450ca0]
mov ecx, dword [ebp - 0x54]
mov cl, byte [ebp + ecx - 0x48]
mov byte [eax + edx], cl
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x450ca0]
add eax, 1
mov ecx, dword [0x44d654]
mov dword [ecx*4 + 0x450ca0], eax
jmp 0x409330
cmp dword [0x44d630], 0
je 0x409320
cmp dword [0x44d658], 0xfa
jge 0x40931e
mov edx, dword [0x44d658]
mov eax, dword [ebp - 0x54]
mov cl, byte [ebp + eax - 0x48]
mov byte [edx + 0x44f1a0], cl
mov edx, dword [0x44d658]
add edx, 1
mov dword [0x44d658], edx
jmp 0x409330
mov eax, dword [ebp - 0x54]
mov cl, byte [ebp + eax - 0x48]
push ecx
call fcn.0040802b
add esp, 4
jmp 0x409a67
mov edx, dword [ebp - 0x54]
xor eax, eax
mov al, byte [ebp + edx - 0x48]
cmp eax, 3
jne 0x40934f
mov dword [ebp - 0x50], 1
jmp 0x409a0b
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
cmp edx, 4
jne 0x409380
mov dword [0x44d638], 1
push 0xffffffffffffffff
call fcn.00423650
add esp, 4
push 2
call fcn.00407ba3
add esp, 4
jmp 0x409a0b
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x48]
cmp ecx, 5
jne 0x409398
call fcn.00408935
jmp 0x409a0b
mov edx, dword [ebp - 0x54]
xor eax, eax
mov al, byte [ebp + edx - 0x48]
cmp eax, 6
jne 0x40942f
cmp dword [0x44d4c8], 0
je 0x4093fe
mov ecx, dword [0x44f2e0]
imul ecx, ecx, 0x458
mov edx, dword [0x44d600]
mov dword [edx + ecx + 0x450], 1
call fcn.00406f6c
test eax, eax
je 0x4093fc
mov eax, dword [0x44f2e0]
imul eax, eax, 0x458
mov ecx, dword [0x44d600]
lea edx, [ecx + eax + 0xc]
push edx
push str.FUNCTION_t_s_tRUN_SYS_RUNNING_Started_n
call fcn.00407759
add esp, 8
jmp 0x40940c
push 1
lea eax, [ebp - 0x5c]
push eax
call fcn.0040849d
add esp, 8
mov dword [0x44d628], 1
mov dword [0x44d648], 0
mov dword [0x44d644], 0
jmp 0x409a0b
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
cmp edx, 7
jne 0x409483
cmp dword [0x44d4e0], 0
jne 0x40947e
mov dword [0x44d4e0], 1
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
cmp dword [0x44e564], 0
je 0x409471
mov eax, dword [0x44e564]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x447da8
call fcn.00423851
add esp, 4
jmp 0x409a0b
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
cmp edx, 8
jne 0x4094c1
cmp dword [0x44d4cc], 0
je 0x4094b2
mov eax, dword [0x44f2e0]
imul eax, eax, 0xc
mov ecx, dword [0x44d608]
mov dword [ecx + eax + 4], 1
jmp 0x4094bc
mov dword [0x44d4c4], 1
jmp 0x409a0b
mov edx, dword [ebp - 0x54]
xor eax, eax
mov al, byte [ebp + edx - 0x48]
cmp eax, 9
jne 0x4094e8
mov dword [0x44d658], 0
mov dword [0x44d630], 1
jmp 0x409a0b
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
cmp edx, 0xc8
jl 0x40958a
mov eax, dword [ebp - 8]
sub eax, 1
cmp dword [ebp - 0x54], eax
jne 0x40956d
push 0x450320
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
sub edx, 0xc8
mov byte [0x451ce0], dl
push 0
push 0
push 0x40851a
call fcn.00425eba
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409564
push 0x450320
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x48]
sub ecx, 0xc8
mov byte [ebp - 4], cl
jmp 0x40956b
mov dword [ebp - 0x58], 0
jmp 0x409585
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x54]
xor eax, eax
mov al, byte [ebp + edx - 0x48]
sub eax, 0xc8
mov byte [ebp - 4], al
jmp 0x409a0b
cmp dword [0x44d628], 0
je 0x409728
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
cmp edx, 2
jne 0x4095e5
mov eax, dword [0x453d24]
add eax, dword [0x44d644]
mov byte [eax], 0
mov dword [0x44d628], 0
push 0
push 0
push 0x40a907
call fcn.00425eba
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4095e0
push str._SYSTEM__Program_Start_Threading_Fail_n
call fcn.0040762a
add esp, 4
jmp 0x409723
cmp dword [0x44d648], 5
jge 0x4096e3
mov ecx, dword [0x44d648]
mov edx, dword [ebp - 0x54]
mov al, byte [ebp + edx - 0x48]
mov byte [ecx + 0x450300], al
mov ecx, dword [0x44d648]
add ecx, 1
mov dword [0x44d648], ecx
cmp dword [0x44d648], 5
jl 0x4096e1
mov edx, dword [0x44d648]
mov byte [edx + 0x450300], 0
mov eax, dword [0x44d650]
mov dword [0x44d64c], eax
push 0x450300
call fcn.00425644
add esp, 4
mov dword [0x44d650], eax
mov dword [0x44d644], 0
cmp dword [0x453d24], 0
je 0x409684
mov ecx, dword [0x44d64c]
cmp ecx, dword [0x44d650]
jge 0x409684
mov edx, dword [0x453d24]
push edx
call fcn.00424f83
add esp, 4
mov dword [0x453d24], 0
cmp dword [0x453d24], 0
je 0x40969a
mov eax, dword [0x44d64c]
cmp eax, dword [0x44d650]
jge 0x4096d5
push 1
mov ecx, dword [0x44d650]
add ecx, 1
push ecx
call fcn.00424fbb
add esp, 8
mov dword [0x453d24], eax
cmp dword [0x453d24], 0
jne 0x4096d3
mov dword [0x44d650], 0
push str._SYSTEM__Run_Parameter_Buffer_Initial_Error_n
call fcn.0040762a
add esp, 4
jmp 0x4096e1
mov edx, dword [0x44d64c]
mov dword [0x44d650], edx
jmp 0x409723
mov eax, dword [0x44d644]
cmp eax, dword [0x44d650]
jl 0x4096ff
push str._SYSTEM__Run_Parameter_Buffer_Overflow_Error_n
call fcn.0040762a
add esp, 4
jmp 0x409723
mov ecx, dword [0x453d24]
add ecx, dword [0x44d644]
mov edx, dword [ebp - 0x54]
mov al, byte [ebp + edx - 0x48]
mov byte [ecx], al
mov ecx, dword [0x44d644]
add ecx, 1
mov dword [0x44d644], ecx
jmp 0x409a0b
cmp dword [0x44d62c], 0
je 0x40997e
mov edx, dword [ebp - 0x54]
xor eax, eax
mov al, byte [ebp + edx - 0x48]
cmp eax, 2
jne 0x40974d
call fcn.00408a31
jmp 0x409979
mov ecx, dword [0x44d654]
cmp dword [ecx*4 + 0x44f300], 5
jge 0x40990f
mov edx, dword [0x44d654]
imul edx, edx, 7
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x44f300]
mov eax, dword [ebp - 0x54]
mov al, byte [ebp + eax - 0x48]
mov byte [edx + ecx + 0x452f20], al
mov ecx, dword [0x44d654]
mov edx, dword [ecx*4 + 0x44f300]
add edx, 1
mov eax, dword [0x44d654]
mov dword [eax*4 + 0x44f300], edx
mov ecx, dword [0x44d654]
cmp dword [ecx*4 + 0x44f300], 5
jl 0x40990d
mov edx, dword [0x44d654]
imul edx, edx, 7
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x44f300]
mov byte [edx + ecx + 0x452f20], 0
mov edx, dword [0x44d654]
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x451da0]
mov dword [edx*4 + 0x44fb00], ecx
mov edx, dword [0x44d654]
imul edx, edx, 7
add edx, 0x452f20
push edx
call fcn.00425644
add esp, 4
mov ecx, dword [0x44d654]
mov dword [ecx*4 + 0x451da0], eax
mov edx, dword [0x44d654]
mov dword [edx*4 + 0x450ca0], 0
mov eax, dword [0x44d654]
cmp dword [eax*4 + 0x452620], 0
je 0x409871
mov ecx, dword [0x44d654]
mov edx, dword [0x44d654]
mov eax, dword [ecx*4 + 0x44fb00]
cmp eax, dword [edx*4 + 0x451da0]
jge 0x409871
mov ecx, dword [0x44d654]
mov edx, dword [ecx*4 + 0x452620]
push edx
call fcn.00424f83
add esp, 4
mov eax, dword [0x44d654]
mov dword [eax*4 + 0x452620], 0
mov ecx, dword [0x44d654]
cmp dword [ecx*4 + 0x452620], 0
je 0x40989c
mov edx, dword [0x44d654]
mov eax, dword [0x44d654]
mov ecx, dword [edx*4 + 0x44fb00]
cmp ecx, dword [eax*4 + 0x451da0]
jge 0x4098f3
push 1
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x451da0]
add eax, 1
push eax
call fcn.00424fbb
add esp, 8
mov ecx, dword [0x44d654]
mov dword [ecx*4 + 0x452620], eax
mov edx, dword [0x44d654]
cmp dword [edx*4 + 0x452620], 0
jne 0x4098f1
mov eax, dword [0x44d654]
mov dword [eax*4 + 0x451da0], 0
push str._SYSTEM__Event_Receive_Buffer_Initial_Error_n
call fcn.0040762a
add esp, 4
jmp 0x40990d
mov ecx, dword [0x44d654]
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x44fb00]
mov dword [ecx*4 + 0x451da0], eax
jmp 0x409979
mov ecx, dword [0x44d654]
mov edx, dword [0x44d654]
mov eax, dword [ecx*4 + 0x450ca0]
cmp eax, dword [edx*4 + 0x451da0]
jl 0x40993a
push str._SYSTEM__Event_Receive_Buffer_Overflow_Error_n
call fcn.0040762a
add esp, 4
jmp 0x409979
mov ecx, dword [0x44d654]
mov edx, dword [ecx*4 + 0x452620]
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x450ca0]
mov eax, dword [ebp - 0x54]
mov al, byte [ebp + eax - 0x48]
mov byte [edx + ecx], al
mov ecx, dword [0x44d654]
mov edx, dword [ecx*4 + 0x450ca0]
add edx, 1
mov eax, dword [0x44d654]
mov dword [eax*4 + 0x450ca0], edx
jmp 0x409a0b
cmp dword [0x44d630], 0
je 0x4099fb
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
cmp edx, 2
jne 0x4099cb
mov eax, dword [0x44d658]
mov byte [eax + 0x44f1a0], 0
push 0x44f1a0
call fcn.00408879
add esp, 4
test eax, eax
je 0x4099bf
push str._SYSTEM__Alarm_Receive_Buffer_Area_Error_n
call fcn.0040762a
add esp, 4
mov dword [0x44d630], 0
jmp 0x4099f9
cmp dword [0x44d658], 0xfa
jge 0x4099f9
mov ecx, dword [0x44d658]
mov edx, dword [ebp - 0x54]
mov al, byte [ebp + edx - 0x48]
mov byte [ecx + 0x44f1a0], al
mov ecx, dword [0x44d658]
add ecx, 1
mov dword [0x44d658], ecx
jmp 0x409a0b
mov edx, dword [ebp - 0x54]
mov al, byte [ebp + edx - 0x48]
push eax
call fcn.0040802b
add esp, 4
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ebp + ecx - 0x48]
cmp edx, 2
jne 0x409a67
cmp dword [ebp - 0x58], 0
je 0x409a67
push 0x450320
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebp - 4]
mov byte [0x451ce0], al
push 0
push 0
push 0x40851a
call fcn.00425eba
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409a60
push 0x450320
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str._Screen_Nav_Info_Spawn_Fail_n
call fcn.0040762a
add esp, 4
mov dword [ebp - 0x58], 0
jmp 0x408f36
jmp 0x408eb3
push 2
call fcn.00407ba3
add esp, 4
mov esp, ebp
pop ebp
ret