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

Disassembly:
push 0xffffffffffffffff
push 0x40b7cc
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x411028]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jbe 0x405389
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x40539a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebp]
push ebx
push edi
push esi
push eax
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.00407580
push 4
call sub.mfc90u.dll_new
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4053c4
lea ecx, [esp + 0x2c]
mov dword [eax], ecx
jmp 0x4053c6
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x74], 1
mov eax, dword [0x411740]
cmp eax, ebx
je 0x4053ee
push Ordinal_4
call eax
lea edx, [esp + 0x2c]
push edx
call fcn.00406b60
mov eax, dword [0x41173c]
add esp, 4
cmp eax, ebx
je 0x40540b
push Ordinal_4
call eax
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40569f
mov eax, dword [0x411744]
cmp eax, ebx
je 0x40543c
push 0x411750
call eax
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x54]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esp + 0x54]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esp + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [esp + 0x74], 3
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
cmp esi, eax
jbe 0x4054af
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
lea ebp, [esi + 0x20]
lea ebx, [ebx]
mov esi, eax
cmp dword [esp + 0x38], eax
jbe 0x4054ce
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x4054d8
cmp edi, dword [esp + 0x2c]
je 0x4054de
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea ebx, [ebp - 0x20]
cmp ebx, esi
je 0x405642
test edi, edi
jne 0x40550d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x405500
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp - 8], 8
lea esi, [ebp - 0x1c]
jb 0x405511
mov eax, dword [esi]
jmp 0x405513
mov eax, dword [edi]
jmp 0x4054f5
mov eax, esi
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call dword [0x40c618]
mov edi, dword [esp + 0x80]
push edi
call fcn.00406e70
test eax, eax
jne 0x40560e
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40558a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x405551
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp - 8], 8
jb 0x405559
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x48]
call dword [0x40c328]
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x40558e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40557f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x14], 8
jb 0x405592
mov eax, dword [ebp]
jmp 0x405594
mov eax, dword [eax]
jmp 0x405546
mov eax, dword [esi]
jmp 0x405574
mov eax, ebp
push eax
lea ecx, [esp + 0x18]
call dword [0x40c328]
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x405612
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00405700
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00405850
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
add esp, 0x14
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00405930
add esp, 8
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x78], 4
call dword [0x40c308]
inc esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov byte [esp + 0x74], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ebx, [esp + 0x44]
call fcn.00407270
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x40563e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
lea ecx, [ebp - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x40562c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
add ebp, 0x38
xor ebx, ebx
jmp 0x4054c0
mov eax, dword [esi]
jmp 0x40561e
mov eax, dword [0x411748]
test eax, eax
je 0x405654
mov ecx, dword [0x411750]
push ecx
call eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x54]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x78], 0xffffffff
call fcn.004070b0
mov eax, 1
jmp 0x4056b3
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x78], 0xffffffff
call fcn.004070b0
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4