Function at 0x4a0190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fc0a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0045ad00
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x34], 2
call fcn.0045b660
test eax, eax
je 0x4a01f3
push str.data
lea ecx, [esp + 0x10]
call fcn.0045b960
test eax, eax
jne 0x4a0234
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.0045b170
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
push ebx
push edi
lea ecx, [esp + 0x14]
call fcn.0045baf0
push str.assets
lea ecx, [esp + 0x18]
call fcn.0045b960
test eax, eax
je 0x4a02f7
lea ecx, [esp + 0x14]
call fcn.0045baf0
push str.asset
lea ecx, [esp + 0x18]
call fcn.0045b960
test eax, eax
je 0x4a02ee
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x10]
push 0x526028
push ecx
lea ecx, [esp + 0x1c]
call fcn.00423910
mov eax, dword [eax]
push str.dishMenu
push eax
call edi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4a02bc
push str.asset
lea ecx, [esp + 0x18]
call fcn.0045b960
test eax, eax
jne 0x4a0276
jmp 0x4a02ee
lea edx, [esp + 0x10]
push 0x52ce98
push edx
lea ecx, [esp + 0x1c]
call fcn.00423910
push eax
lea ecx, [esi + 0x664]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call fcn.0045bba0
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004a4310
lea ecx, [esi + 0xf0]
lea edx, [esp + 0x14]
push ecx
push str.employee_db
mov edi, eax
push str.employee_db
push edx
mov ecx, esi
and edi, 1
call fcn.004a92a0
lea ebx, [esi + 0x100]
and edi, eax
push ebx
push str.system_employee_db
lea eax, [esp + 0x1c]
push str.system_employee_db
push eax
mov ecx, esi
call fcn.004a92a0
test eax, eax
jne 0x4a0373
push ebp
mov ebp, 0x52c208
mov eax, dword [esi + 0x108]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebp
call fcn.0047f0e0
add ebp, 0x20
cmp ebp, 0x52c2c8
jb 0x4a034e
pop ebp
lea edx, [esi + 0x130]
lea eax, [esp + 0x14]
push edx
push str.levels
push str.levels
push eax
mov ecx, esi
call fcn.004aac70
lea ecx, [esi + 0xc0]
lea edx, [esp + 0x14]
push ecx
push str.area
push str.area
push edx
mov ecx, esi
and edi, eax
call fcn.004ac640
and edi, eax
lea eax, [esi + 0x120]
push eax
push str.dish_slot
lea ecx, [esp + 0x1c]
push str.slot
push ecx
mov ecx, esi
call fcn.004ae010
lea edx, [esi + 0x150]
and edi, eax
push edx
push str.errors
lea eax, [esp + 0x1c]
push str.errors
push eax
mov ecx, esi
call fcn.004af9e0
lea ecx, [esp + 0xc]
and edi, eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.0045b170
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4