Function at 0x40a020
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40d858
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x415d90]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0040b4e0
mov ebx, eax
cmp ebx, 0x2cec
je 0x40a07f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004095e0
mov eax, dword [esi + 0x1c68]
push eax
mov ecx, esi
call fcn.00408fd0
test al, al
je 0x40a098
mov byte [esi + 0x1c39], 1
mov ecx, dword [esi + 0x1c6c]
push ecx
mov ecx, esi
call fcn.00408fd0
test al, al
je 0x40a0d0
mov edi, dword [sym.imp.MSVCR80.dll___iob_func]
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
push 0
call edi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR80.dll_setbuf]
add esp, 8
cmp dword [esi + 0x1ab4], 0
je 0x40a112
cmp byte [esi + 0x1c45], 0
je 0x40a0f8
mov ecx, esi
call fcn.004092e0
mov ecx, esi
call fcn.004090b0
push 0
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, 0x2cec
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
cmp ebx, 0x2cec
jne 0x40a251
mov eax, dword [esi + 0x1c5c]
test eax, eax
je 0x40a220
cmp dword [eax], 0
jne 0x40a189
call sub.oodb94vc8.dll_ossDefaultFDName
push eax
call sub.oodb94vc8.dll_ossNewString
mov edx, dword [esi + 0x1c5c]
mov dword [edx], eax
mov eax, dword [esi + 0x1c5c]
add esp, 4
cmp dword [eax], 0
jne 0x40a189
cmp byte [esi + 0x1c60], 0
je 0x40a220
push 0
push 0
push 0
push 0x2cfa
mov ecx, esi
call fcn.004095e0
lea eax, [ebx + 0xe]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc
cmp byte [esi + 0x1c60], 0
je 0x40a220
call sub.oodb94vc8.dll_struct_ocmSession____cdecl_ocmSessionCurrentGetFunction_void_
mov edi, eax
push 1
push edi
lea ecx, [esp + 0x24]
call sub.oodb94vc8.dll_public:_void___thiscall_oehWithSavingErrorHandler::constructor_struct_ocmSession___bool_
mov ecx, dword [esi + 0x1c5c]
mov edx, dword [ecx]
push edi
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x60], 0
call sub.oodb94vc8.dll_bool___cdecl_onsReadBootInfo_char___char___char___char___char___unsigned_int___unsigned_int___unsigned_int___class_onmHostData___char_const___struct_ocmSession__
add esp, 0x2c
test al, al
jne 0x40a207
mov ecx, esi
call fcn.004092e0
lea ecx, [esp + 0x1c]
call sub.oodb94vc8.dll_public:_void___thiscall_oehWithSavingErrorHandler::resignalSavedErrors_void_
mov eax, dword [esi + 0x1c5c]
mov eax, dword [eax]
push 0
push 0
push eax
mov ebx, 0x2cfb
push ebx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004095e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call sub.oodb94vc8.dll_public:_void___thiscall_oehWithSavingErrorHandler::resignalSavedErrors_void_
cmp ebx, 0x2cec
jne 0x40a251
mov eax, dword [esi + 0x1c74]
cmp eax, 0xffffffff
je 0x40a251
shl eax, 6
mov ecx, dword [eax + esi + 0x2c]
mov eax, dword [ecx]
test eax, eax
je 0x40a251
mov edx, dword [esi + 0x1c70]
push edx
push 1
push 7
push 7
push eax
push 0
mov ecx, esi
call fcn.00409be0
mov ebx, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40a25f
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40a26d
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40a27b
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0xc