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

Disassembly:
push 0xffffffffffffffff
push 0x408528
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 0x405375
xor al, al
jmp 0x405625
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 0x405602
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 0x405602
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, ebx
jle 0x405602
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 0x405574
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x409b10
mov ecx, dword [eax]
push eax
mov byte [esp + 0x78], 3
call dword [ecx]
cmp eax, ebx
jne 0x405561
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 0x405556
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 0x405541
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.00407812
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00405640
cmp al, bl
jne 0x4055a0
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 0x405574
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 1
cmp eax, ebx
je 0x405587
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x4053e6
mov edi, dword [esp + 0x74]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x405602
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 0x4055eb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 1
cmp eax, ebx
je 0x4055fe
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 0x40561a
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