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

Disassembly:
push 0xffffffffffffffff
push 0x4160c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x4213b4]
push ebx
push ebp
push esi
xor esi, esi
mov ebp, ecx
xor ebx, ebx
cmp eax, esi
push edi
mov dword [esp + 0x30], ebp
je 0x408296
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], esi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x4c]
mov byte [esp + 0x68], 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x420060
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x4213b4]
call fcn.00402ac0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], esi
cmp eax, esi
mov dword [esp + 0x3c], eax
jle 0x40824c
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x54]
call fcn.00408310
push ecx
mov byte [esp + 0x6c], 2
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x421388
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x74], 3
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x74], 4
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x420060
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x4213b4]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x78], 2
call fcn.00402970
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 5
call fcn.00414c50
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 2
call fcn.00414af4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40822d
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x42005c
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00402b90
add esp, 8
mov byte [esp + 0x6c], 6
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x42005c
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00402b90
add esp, 0xc
push 0x2a
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CString::Remove
push 0x3b
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Remove
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x421388
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 8
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x2e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 9
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea ecx, [esp + 0x14]
inc esi
push esi
push 0x2e
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
cmp edi, 0xffffffff
je 0x408123
lea eax, [ebx + ebx*2]
lea ecx, [eax + eax*8]
lea ebp, [ebp + ecx*4 + 0x1b4]
mov edx, edi
lea eax, [esp + 0x2c]
sub edx, esi
lea ecx, [esp + 0x14]
dec edx
push edx
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0xa
call fcn.00414c50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 9
call fcn.00414af4
mov ecx, dword [esp + 0x18]
lea edx, [ebp - 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x41f090
push eax
call esi
add esp, 8
test eax, eax
jne 0x4080c7
mov dword [ebp], 1
jmp 0x4080fa
mov ecx, dword [esp + 0x10]
push 0x420054
push ecx
call esi
add esp, 8
test eax, eax
jne 0x4080df
mov dword [ebp], eax
jmp 0x4080fa
mov edx, dword [esp + 0x10]
push 0x420050
push edx
call esi
add esp, 8
neg eax
sbb eax, eax
neg eax
add eax, 2
mov dword [ebp], eax
lea esi, [edi + 1]
mov dword [ebp + 4], 0
push esi
push 0x2e
lea ecx, [esp + 0x1c]
inc ebx
add ebp, 0x6c
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
cmp edi, 0xffffffff
jne 0x408064
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
cmp esi, ecx
jge 0x4081f1
mov eax, ecx
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 0xb
call fcn.00414c50
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 9
call fcn.00414af4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x18]
push edx
lea ecx, [eax + eax*8]
lea esi, [ebp + ecx*4]
lea eax, [esi + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x41f090
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4081a2
mov dword [esi + 0x1b4], 1
jmp 0x4081e6
mov edx, dword [esp + 0x10]
push 0x420054
push edx
call edi
add esp, 8
test eax, eax
jne 0x4081bd
mov dword [esi + 0x1b4], eax
jmp 0x4081e6
mov eax, dword [esp + 0x10]
push 0x420050
push eax
call edi
add esp, 8
test eax, eax
jne 0x4081dc
mov dword [esi + 0x1b4], 2
jmp 0x4081e6
mov dword [esi + 0x1b4], 3
mov dword [esi + 0x1b8], 0
inc ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 8
call fcn.00414af4
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 7
call fcn.00414af4
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 6
call fcn.00414af4
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 2
call fcn.00414af4
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 1
call fcn.00414af4
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x407f13
lea ebx, [ebx + ebx*2]
push 0x421388
lea ecx, [ebx + ebx*8]
lea esi, [ebp + ecx*4]
lea edx, [esi + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1b8], 0
mov byte [esp + 0x68], 0
call fcn.00414af4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], edi
call fcn.00414bf6
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret