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

Disassembly:
push 0xffffffffffffffff
push 0x407b58
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 0x4049d5
xor al, al
jmp 0x404c6e
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 0x404c4b
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 0x404c4b
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, ebx
jle 0x404c4b
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 0x404bbd
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 0x404baa
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 0x404b9f
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 0x404b8a
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 + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
push ecx
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x7c], 8
call fcn.00406f72
mov ecx, dword [esp + 0x44]
call fcn.00404c90
cmp al, bl
jne 0x404be9
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
push eax
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 ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 2
cmp eax, ebx
je 0x404bbd
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 1
cmp eax, ebx
je 0x404bd0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x404a46
mov edi, dword [esp + 0x74]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x404c4b
lea ecx, [esp + 0x30]
mov byte [esp + 0x13], 1
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call ebp
push ebx
call ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
push eax
call ebp
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6c], 2
cmp eax, ebx
je 0x404c34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x6c], 1
cmp eax, ebx
je 0x404c47
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edi, dword [esp + 0x74]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x6c], bl
cmp eax, ebx
je 0x404c63
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 0xc