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

Disassembly:
push 0xffffffffffffffff
push 0x43bb9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x34], ebp
mov eax, dword [ebp + 0xd0]
xor edi, edi
push edi
push edi
push 0x1004
push eax
mov dword [esp + 0x354], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
push 0x44a754
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.0043abe8
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x4c]
mov byte [esp + 0x344], 2
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x3c]
mov byte [esp + 0x344], 3
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x34c]
push 0x44a754
push ecx
mov byte [esp + 0x34c], 5
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40947b
lea edx, [esp + 0x34c]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeUpper
push 0x448998
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4090f2
mov eax, dword [esp + 0x34c]
push edi
push 0x1001
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CStdioFile::Open
cmp eax, edi
je 0x4091f5
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x28]
mov bl, 6
xor esi, esi
mov byte [esp + 0x344], bl
test eax, eax
jle 0x4090d8
lea edi, [ebp + 0xb0]
push 2
lea ecx, [esp + 0x24]
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x448bf8
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x408f06
push 1
lea edx, [esp + 0x20]
push esi
push edx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x348], 7
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x344], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x70]
push eax
push 0x448b1c
push ecx
call sub.MFC42.DLL_operator
push 0x448bf4
lea edx, [esp + 0x68]
push eax
push edx
mov byte [esp + 0x350], 8
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x348], 9
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x64]
mov byte [esp + 0x344], 8
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x344], bl
lea ecx, [esp + 0x70]
jmp 0x4090c6
push 2
lea eax, [esp + 0x80]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
push 0x23
mov ecx, eax
mov byte [esp + 0x348], 0xa
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
lea ecx, [esp + 0x7c]
setne byte [esp + 0x13]
mov byte [esp + 0x344], bl
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x408fb2
push 2
lea ecx, [esp + 0x64]
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x348], 0xb
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x60]
mov byte [esp + 0x344], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push 0x448a24
lea eax, [esp + 0x70]
push edx
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x348], 0xc
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x6c]
mov byte [esp + 0x344], bl
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0x78]
push esi
push ecx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
mov eax, dword [eax]
push 0x44a754
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x74]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
jne 0x4090cb
push 3
lea edx, [esp + 0x38]
push esi
push edx
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
mov ebp, eax
push 1
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, edi
mov byte [esp + 0x350], 0xd
call sub.MFC42.DLL_CListCtrl::GetItemText
push 0x448bf0
lea ecx, [esp + 0x7c]
push eax
push ecx
mov byte [esp + 0x350], 0xe
call sub.MFC42.DLL_operator_2
push ebp
lea edx, [esp + 0x6c]
push eax
push edx
mov byte [esp + 0x350], 0xf
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x348], 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x68]
mov byte [esp + 0x344], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x344], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x344], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x344], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x448a24
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x348], 0x11
call sub.MFC42.DLL_CStdioFile::WriteString
mov byte [esp + 0x344], bl
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x408e36
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStdioFile::Close
mov byte [esp + 0x344], 5
lea ecx, [esp + 0x14]
jmp 0x409476
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 0x12
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x20]
push 0x448bec
push edx
mov byte [esp + 0x34c], 0x13
call sub.MFC42.DLL_CString::Format
add esp, 8
cmp esi, edi
jle 0x4091b3
add ebp, 0xb0
mov esi, 0x44b0c4
mov bl, 0x14
push 3
lea eax, [esp + 0x28]
push edi
push eax
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], bl
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x344], 0x13
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
mov ecx, dword [esi + 0x190]
test ecx, ecx
je 0x4091a7
cmp dword [esi], 3
jne 0x409187
cdq
sub eax, edx
sar eax, 1
cmp eax, dword [esi + 0x4b0]
jg 0x4091d3
cmp eax, dword [esi + 0x320]
jl 0x4091d3
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x640]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x28]
inc edi
add esi, 4
cmp edi, eax
jl 0x40913b
mov eax, dword [esp + 0x34c]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x409268
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x344], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x344], 3
call fcn.0043ad26
lea ecx, [esp + 0x4c]
mov byte [esp + 0x344], 2
call fcn.0043ac8a
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x344], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34c]
mov dword [esp + 0x344], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4094ec
mov esi, dword [0x44ac10]
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x96
xor eax, eax
lea edi, [esp + 0xe4]
mov byte [esp + 0x344], 0x15
test esi, esi
rep stosd dword es:[edi], eax
jle 0x40943f
mov ebp, 0x44b0c4
mov dword [esp + 0x14], esi
mov cl, byte [ebp - 0x4b0]
mov ebx, dword [ebp - 0x320]
mov dl, byte [ebp - 0x320]
mov esi, dword [ebp - 0x190]
mov byte [esp + 0xe4], cl
mov ecx, ebx
mov eax, ecx
lea edi, [esp + 0xe6]
shr ecx, 2
mov byte [esp + 0xe5], dl
mov dl, byte [ebp + 0x190]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebp + 0x320]
and ecx, 3
add ebx, 2
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp]
mov byte [esp + ebx + 0xe4], cl
mov cl, byte [ebp + 0x4b0]
mov byte [esp + ebx + 0xe5], dl
mov byte [esp + ebx + 0xe6], al
mov eax, dword [ebp]
mov byte [esp + ebx + 0xe7], cl
add ebx, 4
cmp eax, 4
jne 0x40937b
lea esi, [ebp + 0x640]
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
push 1
push 0x30
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x28]
mov esi, dword [esi]
push edx
push esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov cl, byte [esp + 0x13]
xor eax, eax
test cl, cl
sete al
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x4b0]
mov ecx, eax
lea esi, [esp + 0x24]
jmp 0x4093d3
cmp eax, 3
jne 0x4093c5
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x80]
lea edx, [ebp + 0x640]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x3c]
call fcn.004099f0
mov eax, dword [ebp + 0x4b0]
lea esi, [esp + 0x80]
mov ecx, eax
jmp 0x4093d3
mov eax, dword [ebp + 0x4b0]
mov esi, dword [ebp + 0x640]
mov ecx, eax
mov edx, ecx
lea edi, [esp + ebx + 0xe4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x4b0]
and ecx, 3
add ebx, eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x320]
mov ecx, edx
mov esi, dword [ebp + 0x7d0]
sub ecx, edi
sub ecx, eax
lea edi, [esp + ebx + 0xe4]
sub ecx, 5
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe4]
push edx
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4092a0
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x38]
mov byte [esp + 0x344], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 0x12
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x344], 5
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x344], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x344], 3
call fcn.0043ad26
lea ecx, [esp + 0x4c]
mov byte [esp + 0x344], 2
call fcn.0043ac8a
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x344], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34c]
mov dword [esp + 0x344], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x338
ret 4