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

Disassembly:
push 0xffffffffffffffff
push 0x5b581e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov al, byte [0x67e5a4]
xor edi, edi
test al, 1
mov dword [esp + 0x68], edi
jne 0x46b9fb
mov dl, al
push 0x46bf80
or dl, 1
mov dword [0x67e588], 0x5ccb88
mov byte [0x67e5a4], dl
mov dword [0x67e58c], edi
mov dword [0x67e590], 0x11
mov dword [0x67e594], edi
mov dword [0x67e598], edi
mov dword [0x67e59c], edi
mov dword [0x67e5a0], 0x407
call fcn.004cacf4
add esp, 4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x78]
or ebp, 0xffffffff
cmp eax, edi
mov byte [esp + 0x68], 9
mov dword [esp + 0x24], ebp
jne 0x46ba90
lea eax, [esp + 0x28]
mov dword [esp + 0x78], eax
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x2c], edi
cmp ebx, edi
je 0x46bae5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x7c]
xor eax, ebx
shl eax, 0x11
and ecx, 0x1ffff
xor edx, edx
or eax, ecx
mov ecx, eax
shr eax, 4
div dword [0x67e590]
mov eax, dword [0x67e58c]
cmp eax, edi
je 0x46bae1
mov eax, dword [eax + edx*4]
cmp eax, edi
je 0x46bae1
cmp dword [eax + 8], ecx
je 0x46badd
mov eax, dword [eax]
cmp eax, edi
jne 0x46bad0
jmp 0x46bae1
cmp eax, edi
jne 0x46bb37
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x10]
push ebx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push ecx
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_4
call fcn.00489340
add esp, 0x1c
cmp eax, edi
jne 0x46bb84
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0xb
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x68], 0xa
jmp 0x46beed
add eax, 0xc
lea ecx, [esp + 0x34]
push eax
call fcn.0046cdd0
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], edx
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_3
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_3
jmp 0x46bba0
push 1
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, esi
call fcn.0046bff0
mov esi, eax
cmp esi, edi
je 0x46beda
cmp dword [esi + 8], edi
je 0x46beda
cmp dword [esp + 0x2c], edi
jne 0x46bc40
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test eax, eax
jbe 0x46bc40
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
call ebp
add esp, 8
test eax, eax
sete bl
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 9
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x46bc33
mov eax, dword [esi]
mov ecx, esi
inc edi
call dword [eax]
cmp edi, eax
jb 0x46bbcb
jmp 0x46bc37
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0x74]
xor edi, edi
or ebp, 0xffffffff
cmp dword [esp + 0x24], edi
jge 0x46bc5e
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0x12
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x68], 0x11
jmp 0x46beed
mov eax, dword [esp + 0x2c]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
cmp eax, edi
jne 0x46bd97
cmp ebx, edi
je 0x46bd97
mov edx, dword [esi]
lea eax, [esp + 0x48]
push edi
push eax
mov ecx, esi
call dword [edx + 4]
mov eax, dword [eax + 0xc]
push 0x664668
push eax
call ebp
add esp, 8
test eax, eax
setne bl
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 9
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x46bd97
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
xor eax, ebx
and ecx, 0x1ffff
shl eax, 0x11
or eax, ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x40]
mov ebx, eax
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [esp + 0x34]
sub esp, 0x14
mov edi, esp
lea ecx, [esp + 0x50]
mov dword [esp + 0x90], esp
push ecx
mov dword [edi], edx
mov eax, dword [esp + 0x50]
lea ecx, [edi + 8]
mov dword [esp + 0x94], edi
mov dword [edi + 4], eax
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0x54]
lea ecx, [edi + 0xc]
push edx
mov byte [esp + 0x80], 0x16
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x58]
lea ecx, [edi + 0x10]
push eax
mov byte [esp + 0x80], 0x17
call sub.MFC42.DLL_CString::CString_4
push ebx
mov ecx, 0x67e588
mov byte [esp + 0x80], 9
call fcn.0046c8c0
xor edi, edi
mov edx, dword [esi]
lea eax, [esp + 0x48]
push edi
push eax
mov ecx, esi
call dword [edx + 4]
mov eax, dword [eax + 0xc]
mov bl, 0x18
push 0x664668
push eax
mov byte [esp + 0x70], bl
call ebp
add esp, 8
lea edi, [esp + 0x10]
test eax, eax
jne 0x46bdc4
lea edi, [esp + 0x1c]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [esp + 0x74], 0x19
mov ecx, esp
mov dword [esp + 0x88], esp
push edi
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x7c], bl
call dword [eax + 0xc]
mov esi, eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x46bf67
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x68], 0xc
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 0x10