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

Disassembly:
push 0xffffffffffffffff
push 0x691ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push edi
xor ebx, ebx
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
neg edi
sbb edi, edi
cmp edi, ebx
je 0x5be561
push esi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], ebx
call fcn.004a9bc0
cmp edi, 0xffffffff
mov byte [esp + 0x70], 1
mov esi, edi
jne 0x5be263
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ebx
jbe 0x5be263
mov ecx, dword [ebp + 4]
mov esi, dword [ecx]
cmp esi, ebx
jne 0x5be263
inc eax
add ecx, 4
cmp eax, edx
jb 0x5be255
mov edi, dword [esi]
cmp edi, ebx
jne 0x5be288
mov eax, dword [esi + 4]
mov edx, dword [ebp + 8]
inc eax
cmp eax, edx
jae 0x5be288
mov ecx, dword [ebp + 4]
lea ecx, [ecx + eax*4]
mov edi, dword [ecx]
cmp edi, ebx
jne 0x5be288
inc eax
add ecx, 4
cmp eax, edx
jb 0x5be27a
lea edx, [esi + 8]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::operator_2
add esi, 0xc
lea ecx, [esp + 0x1c]
push esi
call fcn.004a9e70
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004a26f0
cmp eax, 0xffffffff
jne 0x5be2c3
mov byte [esp + 0x70], 2
jmp 0x5be52d
mov ecx, dword [esi + 4]
lea esi, [eax*8]
sub esi, eax
shl esi, 4
add esi, ecx
mov eax, dword [esi + 0x40]
test ah, 0xff
jne 0x5be313
and eax, 0xff
dec eax
jne 0x5be528
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x1c]
push ecx
push esi
push edx
call fcn.005be8f0
add esp, 0xc
test eax, eax
je 0x5be528
mov dword [esp + 0x18], 1
jmp 0x5be528
lea ecx, [esp + 0x24]
call fcn.006086f6
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x74], 3
call fcn.004aa110
test eax, eax
je 0x5be51a
or ebp, 0xffffffff
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], ebp
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 4
mov dword [esp + 0x40], ebp
call sub.MFC42u.DLL_CString::CString_5
mov ebp, 1
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 5
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 0xffffffff
call fcn.004c7080
mov esi, dword [esi + 0x48]
mov byte [esp + 0x70], 6
push esi
call fcn.004a1b30
add esp, 4
test eax, eax
je 0x5be403
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
je 0x5be403
lea edx, [esp + 0x10]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x64], ebx
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x60]
cmp eax, 3
je 0x5be3dc
cmp eax, 6
jne 0x5be3e0
mov dword [esp + 0x5c], ebp
jmp 0x5be3e0
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x38]
push eax
call fcn.004f8ab0
push eax
call fcn.005b8ec0
add esp, 8
cmp eax, ebx
jne 0x5be403
mov dword [esp + 0x40], 0xffffffff
push ebp
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x6c], ebp
call fcn.004182e0
add esp, 0x10
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x70], 7
cmp eax, ebp
jne 0x5be469
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
jne 0x5be469
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
jne 0x5be450
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x38]
push ecx
push edx
call fcn.004f6090
add esp, 8
mov dword [esp + 0x60], eax
push 0xd
push eax
call fcn.005b8ec0
add esp, 8
test eax, eax
je case.default.0x5be497
mov dword [esp + 0x40], 0xd
jmp case.default.0x5be497
push 2
lea ecx, [esp + 0x3c]
call fcn.004f8ab0
push eax
call fcn.005b8ec0
add esp, 8
test eax, eax
je 0x5be489
mov dword [esp + 0x40], 2
lea ecx, [esp + 0x38]
call fcn.004f8ab0
cmp eax, 9
ja case.default.0x5be497
jmp dword [eax*4 + 0x5be574]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
call sub.MFC42u.DLL_CString::operator_2
jmp case.default.0x5be497
lea ecx, [esp + 0x14]
push ecx
call fcn.0041a810
fstp qword [esp + 0x54]
add esp, 4
jmp case.default.0x5be497
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x38]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.004fdaf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x70], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 3
call sub.MFC42u.DLL_CString::CString
mov ebp, dword [esp + 0x78]
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 1
call sub.MFC42u.DLL_CStringArray::CStringArray
mov byte [esp + 0x70], 9
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42u.DLL_CString::CString
cmp edi, ebx
jne 0x5be227
mov eax, dword [esp + 0x18]
pop esi
mov ecx, dword [esp + 0x64]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret