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

Disassembly:
push 0xffffffffffffffff
push 0x4360ea
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4508cc]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4508cc]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x2c], ebp
mov esi, 1
call fcn.0040de50
test al, al
je 0x40f5dd
mov eax, dword [ebp + 0x38]
push eax
mov ecx, ebp
call fcn.0040e0b0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
je 0x40f5e5
mov eax, dword [ebp + 0x44]
xor ebx, ebx
cmp dword [ebp + 0x30], ebx
jne 0x40f362
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
neg eax
sbb eax, eax
neg eax
sub eax, esi
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, ebp
call fcn.0040ecd0
cmp eax, ebx
jge 0x40f378
xor eax, eax
jmp 0x40f5e5
xor ecx, ecx
cmp dword [ebp + 0x48], ebx
jne 0x40f381
mov ecx, esi
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
je 0x40f38b
or ecx, 2
cmp dword [ebp + 0x50], ebx
je 0x40f393
or ecx, 4
cmp dword [ebp + 0x54], ebx
je 0x40f39b
or ecx, 8
cmp dword [ebp + 0x58], ebx
je 0x40f3a3
or ecx, 0x10
cmp dword [ebp + 0x5c], ebx
je 0x40f3ab
or ecx, 0x20
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
cmp eax, ebx
jne 0x40f371
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea esi, [ebp + 0x7c]
push esi
mov ecx, ebp
mov dword [esp + 0x78], ebx
call fcn.0040ee40
push 0x3b
lea ecx, [esp + 0x34]
push esi
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_]
add esp, 0xc
push ebx
push 0x3b
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 1
xor edi, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov esi, eax
cmp esi, dword [edx]
je 0x40f45f
mov eax, esi
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
cmp dword [esp + 0x60], ebx
mov byte [esp + 0x74], 2
je 0x40f435
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x20]
call fcn.0040ebc0
lea edi, [esi + 1]
push edi
push 0x3b
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
lea ecx, [esp + 0x4c]
mov esi, eax
mov byte [esp + 0x74], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp esi, dword [eax]
jne 0x40f407
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x40f46b
xor eax, eax
jmp 0x40f484
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esp + 0x18], eax
xor esi, esi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x40f4e2
mov ebp, dword [esp + 0x24]
mov ecx, ebp
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40f4e6
lea ecx, [ebx + edi]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov dword [edx + esi*4], eax
add esi, 1
add ebx, 0x1c
jmp 0x40f498
xor eax, eax
jmp 0x40f4ff
sub ebp, edi
mov eax, 0x92492493
imul ebp
add edx, ebp
mov ebp, dword [esp + 0x2c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [edx + 0x18]
call ecx
xor ebx, ebx
cmp eax, ebx
je 0x40f51a
mov dword [esp + 0x14], ebx
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40f556
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40f556
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
push eax
call edi
add esi, 1
jmp 0x40f522
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [esp + 0x20]
cmp esi, ebx
mov dword [esp + 0x74], 0xffffffff
je 0x40f5a4
mov edi, dword [esp + 0x24]
cmp esi, edi
je 0x40f59b
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x40f588
mov esi, dword [esp + 0x20]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x40f5e1
mov esi, dword [esp + 0x14]
cmp dword [ebp + 0x98], ebx
je 0x40f5d3
mov ecx, dword [ebp + 0x9c]
cmp ecx, ebx
je 0x40f5d3
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
call eax
mov dword [ebp + 0x98], ebx
mov eax, esi
jmp 0x40f5e5
xor ebx, ebx
jmp 0x40f5ba
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00412bbe
add esp, 0x64
ret