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

Disassembly:
push 0xffffffffffffffff
push 0x40bcd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
mov eax, dword [ebx + 0x1c0]
push esi
push esi
push 0x1004
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.user32.dll_SendMessageA]
mov ebp, eax
cmp ebp, esi
jle 0x40a80d
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x104]
mov dword [esp + 0x100], esi
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], esi
push 0x40f880
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
call fcn.0040a8e4
push 0x40f880
lea ecx, [esp + 0x30]
mov dword [esp + 0x260], esi
call fcn.0040a8e4
test ebp, ebp
mov byte [esp + 0x25c], 1
jle 0x409fbb
lea edi, [ebx + 0x1a0]
mov bl, 2
push 5
lea ecx, [esp + 0x18]
push esi
push ecx
mov ecx, edi
call sub.mfc42.dll_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], bl
call sub.mfc42.dll_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 1
call sub.mfc42.dll_CString::CString
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.msvcrt.dll_atoi]
mov edx, dword [esp + eax*4 + 0x104]
lea eax, [esp + eax*4 + 0x104]
add esp, 4
inc edx
inc esi
mov dword [eax], edx
cmp esi, ebp
jl 0x409f62
mov ebx, dword [esp + 0x28]
xor esi, esi
test ebp, ebp
jle 0x40a017
lea edi, [ebx + 0x1a0]
push 5
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, edi
call sub.mfc42.dll_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], 3
call sub.mfc42.dll_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 1
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.msvcrt.dll_atoi]
mov edx, dword [esp + eax*4 + 0x50]
lea eax, [esp + eax*4 + 0x50]
add esp, 4
inc edx
inc esi
mov dword [eax], edx
cmp esi, ebp
jl 0x409fc7
mov ebp, 1
lea esi, [esp + 0x4c]
cmp ebp, 0xa
jge 0x40a041
mov edi, 0xa
lea eax, [esi + 4]
sub edi, ebp
mov ecx, dword [esi]
mov edx, dword [eax]
cmp ecx, edx
jge 0x40a03b
mov dword [esi], edx
mov dword [eax], ecx
add eax, 4
dec edi
jne 0x40a02f
inc ebp
add esi, 4
lea edx, [ebp - 1]
cmp edx, 9
jl 0x40a020
mov eax, dword [esp + 0x4c]
mov edi, 1
or ebx, 0xffffffff
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov esi, edi
lea ecx, [esp + 0x78]
lea edx, [esp + 0x50]
mov eax, dword [edx]
test eax, eax
je 0x40a0ba
cmp eax, dword [ecx - 4]
je 0x40a0b1
mov dword [ecx], eax
inc edi
add ecx, 4
inc esi
add edx, 4
cmp esi, 0xa
jl 0x40a0a0
test edi, edi
jle 0x40a15b
lea ebp, [esp + 0x74]
mov dword [esp + 0x10], edi
mov ebx, dword [ebp]
xor esi, esi
lea edi, [esp + 0x100]
cmp dword [edi], ebx
jne 0x40a12f
xor ecx, ecx
push esi
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ecx
push 0x40f078
push edx
mov byte [esp + 0x44], cl
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x34]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
call sub.mfc42.dll_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], 4
call sub.mfc42.dll_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 1
call sub.mfc42.dll_CString::CString
inc esi
add edi, 4
cmp esi, 0xa
jl 0x40a0d6
push 0x40f840
lea ecx, [esp + 0x30]
call fcn.0040a8de
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x40a0ca
or ebx, 0xffffffff
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x18c]
lea edx, [esp + 0x18c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18c]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40a1be
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], al
call sub.mfc42.dll_CString::CString
mov dword [esp + 0x25c], ebx
jmp 0x40a804
lea edi, [esp + 0x18c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x18b], 0x2c
jne 0x40a1ef
lea edi, [esp + 0x18c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x18b], al
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x128]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18c]
push ecx
call fcn.00402e30
mov ebx, 1
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x40a2c2
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x9c]
lea edx, [esp + 0x9c]
rep stosd dword es:[edi], eax
push ebx
lea eax, [esp + 0x190]
push edx
push eax
call fcn.00402e70
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [esp + 0x48], edx
lea ecx, [edx + ebp]
cmp ecx, 3
jg 0x40a3d3
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x128]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, ecx
cmp ebp, 3
jge 0x40a2c2
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jle 0x40a222
mov ebx, dword [sym.imp.msvcrt.dll_atoi]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x128]
push eax
push 0x409
call sub.mfc42.dll_CWnd::GetDlgItem
mov ecx, eax
call sub.mfc42.dll_CWnd::SetWindowTextA
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x128]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18c]
push ecx
call fcn.00402e30
add esp, 4
cmp eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 1
jl 0x40a7cb
mov edx, dword [esp + 0x24]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x9c]
push edx
lea ecx, [esp + 0x190]
push eax
push ecx
call fcn.00402e70
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [esp + 0x40], edx
lea eax, [edx + ebp]
cmp eax, 5
jg 0x40a5d9
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, ecx
cmp ebp, 5
jge 0x40a7cb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jle 0x40a31c
jmp 0x40a7cb
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0
mov esi, 3
rep stosd dword es:[edi], eax
sub esi, ebp
xor edi, edi
test edx, edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], edi
jle 0x40a5ce
mov al, byte [esp + edi + 0x9c]
xor ecx, ecx
movsx edx, al
mov dword [esp + 0x18], ecx
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push 0x40f704
push eax
mov word [esp + 0x2c], cx
call dword [sym.imp.msvcrt.dll_sprintf]
mov ebx, dword [sym.imp.msvcrt.dll_atoi]
lea ecx, [esp + 0x24]
push ecx
call ebx
mov edx, dword [esp + 0x38]
add esp, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x1c0]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.user32.dll_SendMessageA]
xor ebp, ebp
xor esi, esi
test eax, eax
mov dword [esp + 0x40], eax
jle 0x40a527
mov ecx, dword [esp + 0x28]
lea edi, [ecx + 0x1a0]
push 5
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, edi
call sub.mfc42.dll_CListCtrl::GetItemText
push 0x40f880
lea ecx, [esp + 0x28]
mov byte [esp + 0x260], 5
call fcn.0040a8e4
mov eax, dword [esp + 0x10]
mov byte [esp + 0x25c], 6
push eax
call ebx
mov ecx, dword [esp + 0x40]
add esp, 4
cmp eax, ecx
jne 0x40a4f4
push 0
lea ecx, [esp + 0x48]
push esi
push ecx
mov ecx, edi
call sub.mfc42.dll_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x260], 7
call sub.mfc42.dll_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x25c], 6
call sub.mfc42.dll_CString::CString
mov edx, dword [esp + 0x24]
push edx
call ebx
add esp, 4
cmp eax, ebp
jle 0x40a4f4
mov ebp, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x25c], 5
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 1
call sub.mfc42.dll_CString::CString
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x40a473
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
inc edi
mov dword [esp + 0x14], edi
mov dword [esp + eax*4 + 0x4c], ebp
mov eax, dword [esp + 0x48]
cmp edi, eax
jl 0x40a401
mov esi, dword [esp + 0x34]
test esi, esi
jle 0x40a2c8
mov ebp, esi
xor edi, edi
xor ecx, ecx
xor eax, eax
lea esi, [esp + 0x4c]
mov edx, dword [esi]
cmp edx, edi
jle 0x40a562
mov edi, edx
mov ecx, eax
inc eax
add esi, 4
cmp eax, 0xa
jl 0x40a558
xor edx, edx
push ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], edx
push 0x40f078
push eax
mov dword [esp + ecx*4 + 0x58], 0
mov word [esp + 0x2c], dx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x128]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x40a54e
jmp 0x40a2c8
mov ebx, dword [sym.imp.msvcrt.dll_atoi]
jmp 0x40a544
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0
mov esi, 5
rep stosd dword es:[edi], eax
sub esi, ebp
xor edi, edi
test edx, edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], edi
jle 0x40a74a
jmp 0x40a60f
mov ebx, dword [sym.imp.msvcrt.dll_atoi]
mov al, byte [esp + edi + 0x9c]
xor ecx, ecx
movsx edx, al
mov dword [esp + 0x18], ecx
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push 0x40f704
push eax
mov word [esp + 0x2c], cx
call dword [sym.imp.msvcrt.dll_sprintf]
lea ecx, [esp + 0x24]
push ecx
call ebx
mov edx, dword [esp + 0x38]
add esp, 0x10
mov ebx, eax
mov eax, dword [edx + 0x1c0]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.user32.dll_SendMessageA]
xor ebp, ebp
xor esi, esi
test eax, eax
mov dword [esp + 0x48], eax
jle 0x40a731
mov ecx, dword [esp + 0x28]
lea edi, [ecx + 0x1a0]
push 5
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, edi
call sub.mfc42.dll_CListCtrl::GetItemText
push 0x40f880
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 8
call fcn.0040a8e4
mov eax, dword [esp + 0x14]
mov byte [esp + 0x25c], 9
push eax
call dword [sym.imp.msvcrt.dll_atoi]
add esp, 4
cmp eax, ebx
jne 0x40a6fe
push 0
lea ecx, [esp + 0x38]
push esi
push ecx
mov ecx, edi
call sub.mfc42.dll_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 0xa
call sub.mfc42.dll_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x25c], 9
call sub.mfc42.dll_CString::CString
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.msvcrt.dll_atoi]
add esp, 4
cmp eax, ebp
jle 0x40a6fe
mov ebp, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 8
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 1
call sub.mfc42.dll_CString::CString
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x40a679
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
mov dword [esp + ebx*4 + 0x4c], ebp
mov dword [esp + 0x3c], edi
jl 0x40a609
mov esi, dword [esp + 0x44]
test esi, esi
jle 0x40a7cb
mov ebx, esi
xor edi, edi
xor ecx, ecx
xor eax, eax
lea esi, [esp + 0x4c]
mov edx, dword [esi]
cmp edx, edi
jle 0x40a764
mov edi, edx
mov ecx, eax
inc eax
add esi, 4
cmp eax, 0xa
jl 0x40a75a
xor eax, eax
mov dword [esp + ecx*4 + 0x4c], 0
mov dword [esp + 0x18], eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push 0x40f078
push ecx
mov word [esp + 0x2c], ax
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x128]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x40a750
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x128]
push eax
push 0x40a
call sub.mfc42.dll_CWnd::GetDlgItem
mov ecx, eax
call sub.mfc42.dll_CWnd::SetWindowTextA
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 0
call sub.mfc42.dll_CString::CString
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0x30]
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret