Function at 0x421910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4362c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x14]
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x30], 1
mov dword [esp + 0x18], ebx
call fcn.0041c230
lea ecx, [esp + 0xc]
push ebx
push ecx
mov ecx, ebp
call fcn.0041c230
test eax, eax
je 0x42197b
lea edx, [esp + 0x10]
push ebx
push edx
mov ecx, ebp
call fcn.0041ad70
jmp 0x421989
push 0x444488
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x444484
neg eax
sbb eax, eax
push ecx
and eax, 0x30
add eax, 0x10
mov dword [esp + 0x18], eax
call esi
add esp, 8
test eax, eax
je 0x421ad5
mov edx, dword [esp + 0xc]
push str.READ
push edx
call esi
add esp, 8
test eax, eax
je 0x421ad5
mov eax, dword [esp + 0xc]
push 0x444478
push eax
call esi
add esp, 8
test eax, eax
je 0x421ab4
mov ecx, dword [esp + 0xc]
push str.WRITE
push ecx
call esi
add esp, 8
test eax, eax
je 0x421ab4
mov edx, dword [esp + 0xc]
push 0x44446c
push edx
call esi
add esp, 8
test eax, eax
je 0x421a93
mov eax, dword [esp + 0xc]
push str.APPEND
push eax
call esi
add esp, 8
test eax, eax
je 0x421a93
mov ecx, dword [esp + 0xc]
push 0x444488
push ecx
call esi
add esp, 8
test eax, eax
jne 0x421af3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__fsopen]
push edx
push 0x4422e8
push eax
call edi
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x421a7e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push 0x444460
push edx
call edi
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x421a8b
push 2
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, 2
pop edi
jmp 0x421afb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push 0x44445c
push ecx
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0xc
mov eax, 2
jmp 0x421afb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push 0x4422f4
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0xc
mov eax, 1
jmp 0x421afb
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push 0x4422f0
push edx
call dword [sym.imp.MSVCRT.dll__fsopen]
add esp, 0xc
mov esi, eax
xor eax, eax
jmp 0x421afb
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp esi, ebx
je 0x421b49
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.00411ae0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
fild dword [esp + 0x18]
mov byte [esp + 0x28], bl
fstp qword [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x18]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop esi
fld qword [0x439ee0]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret