Function at 0x404a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x50]
push ecx
mov bl, 4
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
mov byte [esp + 0x50], bl
call fcn.00406f3e
lea eax, [esp + 0x1c]
mov byte [esp + 0x4c], 5
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x40ab48
call fcn.00406f3e
push ecx
mov byte [esp + 0x58], 6
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40ab50
call fcn.00406f3e
mov byte [esp + 0x58], bl
call fcn.004047e0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push esi
call fcn.00406f3e
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 7
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab44
call fcn.00406f3e
push ecx
mov byte [esp + 0x58], 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab50
call fcn.00406f3e
mov byte [esp + 0x58], bl
call fcn.004047e0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push esi
call fcn.00406f3e
lea edx, [esp + 0x14]
mov byte [esp + 0x4c], 9
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab40
call fcn.00406f3e
push ecx
mov byte [esp + 0x58], 0xa
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab50
call fcn.00406f3e
mov byte [esp + 0x58], bl
call fcn.004047e0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push esi
call fcn.00406f3e
lea eax, [esp + 0x10]
mov byte [esp + 0x4c], 0xb
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab3c
call fcn.00406f3e
push ecx
mov byte [esp + 0x58], 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab50
call fcn.00406f3e
mov byte [esp + 0x58], bl
call fcn.004047e0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push esi
call fcn.00406f3e
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 0xd
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab38
call fcn.00406f3e
push ecx
mov byte [esp + 0x58], 0xe
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x40ab50
call fcn.00406f3e
mov byte [esp + 0x58], bl
call fcn.004047e0
mov edx, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [edx - 8]
test eax, eax
je 0x404cf1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404cf1
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x404c5b
lea ecx, [esp + 8]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x44
ret
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
jne 0x404cc2
lea ecx, [esp + 8]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x24]
call fcn.00406f14
mov eax, dword [esp + 8]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 0xf
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x404d4d
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 8]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004053c0
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], al
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 8]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov al, byte [esp + 0x50]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret