Function at 0x405260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x407c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x74]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x38], ecx
mov byte [esp + 0x13], bl
jne 0x405295
xor al, al
jmp 0x405545
mov dword [esp + 0x34], ebx
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
push edi
mov dword [esp + 0x74], ebx
call dword [eax + 0x44]
mov dword [esp + 0x28], ebx
mov edx, dword [edi]
lea eax, [esp + 0x28]
push eax
push edi
mov byte [esp + 0x74], 1
call dword [edx + 0x20]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp eax, ebx
jne 0x405522
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jne 0x405522
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, ebx
jle 0x405522
mov edi, dword [esp + 0x60]
mov eax, 3
mov word [esp + 0x44], ax
mov word [esp + 0x54], ax
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x44]
lea edx, [esp + 0x24]
push edx
mov eax, dword [esp + 0x2c]
sub esp, 0x10
mov byte [esp + 0x80], 2
mov edx, esp
sub esp, 0x10
mov ecx, dword [eax]
mov dword [edx], ebp
mov ebp, dword [esp + 0x6c]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x74]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ebp
mov ebp, dword [esp + 0x78]
mov edx, esp
push eax
mov dword [edx], ebp
mov ebp, dword [esp + 0x80]
mov dword [edx + 4], ebp
mov dword [edx + 8], esi
mov dword [edx + 0xc], edi
call dword [ecx + 0x2c]
cmp eax, ebx
jne 0x405494
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x408b08
mov ecx, dword [eax]
push eax
mov byte [esp + 0x78], 3
call dword [ecx]
cmp eax, ebx
jne 0x405481
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
mov byte [esp + 0x74], 4
call dword [ecx + 0x38]
cmp eax, ebx
jne 0x405476
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x1c]
push str.TABLE
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x405461
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
mov byte [esp + 0x74], 7
call dword [edx + 0xf8]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x80], 8
call fcn.00406f72
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00405560
cmp al, bl
jne 0x4054c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 2
cmp eax, ebx
je 0x405494
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 1
cmp eax, ebx
je 0x4054a7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x405306
mov edi, dword [esp + 0x74]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x405522
lea ecx, [esp + 0x30]
mov byte [esp + 0x13], 1
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call ebp
push ebx
call ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
push ecx
call ebp
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 2
cmp eax, ebx
je 0x40550b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 1
cmp eax, ebx
je 0x40551e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x74]
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x6c], bl
cmp eax, ebx
je 0x40553a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x34]
push edx
call ebp
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x14