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

Disassembly:
push 0xffffffffffffffff
push 0x40bba3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x910
mov eax, dword [0x4677b0]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
cmp eax, ebp
push ebp
mov dword [esp + 0x40], esi
push ebp
jne 0x408741
push 0x40f7d0
call sub.mfc42.dll_AfxMessageBox
jmp 0x409780
mov eax, dword [esi + 0x1c0]
push 0x1009
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x4677a8]
mov eax, dword [0x4677b4]
lea edx, [ecx + ecx]
cmp eax, edx
jge 0x408776
push ebp
push ebp
push 0x40f798
call sub.mfc42.dll_AfxMessageBox
jmp 0x409780
cmp eax, 0x2710
jle 0x4087c1
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x538]
push 0x2710
rep stosd dword es:[edi], eax
push 0x2710
lea eax, [esp + 0x540]
push 0x40f764
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x538]
push ebp
push ebp
push ecx
call sub.mfc42.dll_AfxMessageBox
jmp 0x409780
push 0x40f880
lea ecx, [esp + 0x30]
call fcn.0040a8e4
lea edx, [esp + 0x2c]
lea ecx, [esi + 0x120]
push edx
mov dword [esp + 0x92c], ebp
call sub.mfc42.dll_CWnd::GetWindowTextA
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4677a8]
mov ebx, dword [eax - 8]
cmp ebx, edx
jge 0x408808
push ebp
push ebp
push 0x40f708
call sub.mfc42.dll_AfxMessageBox
jmp 0x40976c
lea esi, [edx - 1]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x244]
mov dword [esp + 0x240], ebp
cmp esi, ebp
mov ebp, dword [sym.imp.msvcrt.dll_atoi]
rep stosd dword es:[edi], eax
jl 0x40887f
lea edi, [esp + esi*4 + 0x240]
jmp 0x40883b
mov edx, dword [0x4677a8]
mov ecx, esi
sub ecx, edx
mov edx, dword [esp + 0x2c]
add ecx, ebx
mov al, byte [ecx + edx]
xor ecx, ecx
movsx edx, al
mov dword [esp + 0x60], ecx
push edx
lea eax, [esp + 0x64]
mov dword [esp + 0x68], ecx
push 0x40f704
push eax
mov word [esp + 0x74], cx
call dword [sym.imp.msvcrt.dll_sprintf]
lea ecx, [esp + 0x6c]
push ecx
call ebp
add esp, 0x10
mov dword [edi], eax
dec esi
sub edi, 4
test esi, esi
jge 0x408835
lea ecx, [esp + 0x48]
call fcn.00401670
lea ecx, [esp + 0x78]
mov byte [esp + 0x928], 1
call fcn.00402050
or ebx, 0xffffffff
mov byte [esp + 0x928], 2
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x40f880
call fcn.0040a8e4
push ecx
mov byte [esp + 0x934], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x467790
call sub.mfc42.dll_CString::CString_2
lea ecx, [esp + 0x54]
mov byte [esp + 0x934], 2
call fcn.00401be0
xor esi, esi
cmp eax, esi
jne 0x4088f7
push esi
push esi
push 0x40f478
call sub.mfc42.dll_AfxMessageBox
jmp 0x408e4d
lea edx, [esp + 0x48]
lea ecx, [esp + 0x78]
push edx
call fcn.004029f0
mov eax, dword [esp + 0x3c]
push esi
push esi
push 0xf0
mov ecx, dword [eax + 0x240]
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
push 0x40f880
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], eax
call fcn.0040a8e4
push 0x40f880
lea ecx, [esp + 0x34]
mov byte [esp + 0x92c], 4
call fcn.0040a8e4
push 0x40f880
lea ecx, [esp + 0x44]
mov byte [esp + 0x92c], 5
call fcn.0040a8e4
push 0x40f880
lea ecx, [esp + 0x48]
mov byte [esp + 0x92c], 6
call fcn.0040a8e4
push 0x40f880
lea ecx, [esp + 0x38]
mov byte [esp + 0x92c], 7
call fcn.0040a8e4
mov byte [esp + 0x928], 8
mov dword [0x4677c8], esi
mov edx, 0x40f954
mov dword [edx - 4], esi
mov dword [edx], esi
mov ecx, 6
xor eax, eax
lea edi, [edx + 5]
mov byte [edx + 4], 0
rep stosd dword es:[edi], eax
add edx, 0x24
cmp edx, 0x467794
stosb byte es:[edi], al
jl 0x40899a
mov edx, dword [0x4677b4]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x72c]
dec edx
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x730]
push 0x40f6d0
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x72c]
push 3
push 3
push 1
push ecx
lea ecx, [esp + 0x88]
call fcn.00402260
test eax, eax
jne 0x408a21
lea ecx, [esp + 0x48]
call fcn.00401ce0
push esi
push esi
push 0x40f6ac
call sub.mfc42.dll_AfxMessageBox
jmp 0x408df8
lea ecx, [esp + 0x78]
call fcn.00402740
test eax, eax
jne 0x408b00
lea edx, [esp + 0x38]
lea ecx, [esp + 0x78]
push edx
push 0x40f2a8
call fcn.00402870
test eax, eax
je 0x408dd8
lea eax, [esp + 0x30]
lea ecx, [esp + 0x78]
push eax
push 0x40f6a4
call fcn.00402870
test eax, eax
je 0x408dd8
lea ecx, [esp + 0x34]
push ecx
push 0x40f694
lea ecx, [esp + 0x80]
call fcn.00402870
test eax, eax
je 0x408dd8
mov edx, dword [esp + 0x38]
push edx
call ebp
mov ecx, dword [0x4677c8]
lea edx, [ecx + ecx*8]
lea esi, [ecx + ecx*8]
shl esi, 2
mov dword [edx*4 + 0x40f950], eax
mov eax, dword [esp + 0x34]
push eax
call ebp
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x40f954], eax
mov ecx, ebx
xor eax, eax
add esp, 8
lea edx, [esi + 0x40f959]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [0x4677c8]
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 + 0x78]
mov dword [0x4677c8], edx
call fcn.00402540
lea ecx, [esp + 0x78]
call fcn.00402740
test eax, eax
je 0x408a32
cmp dword [esp + 0x10], 1
jne 0x408fe9
mov eax, 0x40f958
mov byte [eax], 0
add eax, 0x24
cmp eax, 0x467798
jl 0x408b10
mov ebx, dword [0x4677a8]
xor eax, eax
test ebx, ebx
mov dword [esp + 0x14], eax
jle 0x408b8a
mov edi, dword [0x4677c8]
mov esi, 0x40f958
sub edi, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
cmp eax, edi
jge 0x408b76
sub edi, eax
xor eax, eax
lea edx, [esp + 0x240]
lea ecx, [esi - 8]
mov ebp, dword [ecx]
cmp ebp, dword [edx]
jne 0x408b68
inc eax
add ecx, 0x24
add edx, 4
cmp eax, ebx
jl 0x408b54
mov byte [esi], 1
add esi, 0x24
dec edi
jne 0x408b48
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc eax
add esi, 0x24
cmp eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jl 0x408b42
mov ecx, dword [0x4677c8]
mov dword [esp + 0x28], 0
sub ecx, ebx
test ecx, ecx
jle 0x4096ec
mov dword [esp + 0x18], 0x40f954
mov edx, dword [esp + 0x18]
cmp byte [edx + 4], 1
jne 0x408fc0
mov esi, dword [esp + 0x28]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x178]
rep stosd dword es:[edi], eax
lea eax, [ebx + esi]
lea eax, [eax + eax*8]
mov ecx, dword [eax*4 + 0x40f930]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x180]
push 0x40f68c
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
mov ebp, dword [esp + 0x4c]
add esp, 0x10
mov edx, dword [ebp + 0x1c0]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.user32.dll_SendMessageA]
push 0
mov ebx, eax
push 0
push 0
lea eax, [esp + 0x184]
push 0
add ebp, 0x1a0
push eax
push ebx
push 3
mov ecx, ebp
call sub.mfc42.dll_CListCtrl::InsertItem
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0xb0]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov word [esp + 0x24], cx
mov ecx, 0x19
rep stosd dword es:[edi], eax
mov eax, dword [0x4677a8]
test eax, eax
jle 0x408cd2
lea edx, [esp + 0x240]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push ecx
push 0x40f078
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb0]
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 eax, dword [esp + 0x10]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4677a8]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x408c66
mov esi, dword [esp + 0x28]
push 0x40f20c
push 1
push ebx
mov ecx, ebp
call sub.mfc42.dll_CListCtrl::SetItemText
mov edx, dword [0x4677ac]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x1dc]
rep stosd dword es:[edi], eax
mov eax, esi
sub eax, edx
cmp eax, esi
jge 0x408d96
lea ecx, [eax + eax*8]
lea edx, [ecx*4 + 0x40f950]
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], 0x40f950
jl 0x408d80
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
push edx
lea eax, [esp + 0x20]
push 0x40f078
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1dc]
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]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 0x24
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x408d19
mov edx, dword [0x4677ac]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4677a8]
add edx, ecx
lea eax, [ecx + esi]
add edx, esi
cmp eax, edx
mov dword [esp + 0x14], eax
jge 0x408f14
lea ecx, [eax + eax*8]
lea edx, [ecx*4 + 0x40f950]
mov dword [esp + 0x10], edx
jmp 0x408e7f
push 0
push 0
push 0x40f668
call sub.mfc42.dll_AfxMessageBox
lea ecx, [esp + 0x78]
call fcn.00402440
lea ecx, [esp + 0x48]
call fcn.00401ce0
lea ecx, [esp + 0x34]
mov byte [esp + 0x928], 7
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x928], 6
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x928], 5
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x928], 4
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x928], 2
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x928], 1
call fcn.004021c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x928], 0
call fcn.004017c0
mov dword [esp + 0x928], ebx
jmp 0x409777
mov eax, dword [esp + 0x14]
cmp eax, dword [0x4677c8]
jge 0x408f14
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
push edx
lea eax, [esp + 0x20]
push 0x40f078
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
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
mov edx, dword [0x4677ac]
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4677a8]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
add edx, ecx
inc eax
add edx, esi
add edi, 0x24
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
jl 0x408e7b
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x538]
lea edx, [esp + 0x1dc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x114]
lea ecx, [esp + 0xb0]
push eax
push ecx
push edx
lea eax, [esp + 0x544]
push 0x40f65c
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x14
mov ecx, ebp
push 0x40f20c
push 2
push ebx
call sub.mfc42.dll_CListCtrl::SetItemText
push 0x40f880
push 3
push ebx
mov ecx, ebp
call sub.mfc42.dll_CListCtrl::SetItemText
mov ecx, dword [esp + 0x18]
add ecx, 5
push ecx
push 4
push ebx
mov ecx, ebp
call sub.mfc42.dll_CListCtrl::SetItemText
mov al, byte [esp + 0x114]
xor edx, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], edx
push ecx
mov dword [esp + 0x5c], edx
push 5
push ebx
mov ecx, ebp
mov word [esp + 0x68], dx
mov byte [esp + 0x60], al
call sub.mfc42.dll_CListCtrl::SetItemText
push 0x40f1e0
push 6
push ebx
mov ecx, ebp
call sub.mfc42.dll_CListCtrl::SetItemText
mov ebx, dword [0x4677a8]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4677c8]
mov edi, dword [esp + 0x18]
inc eax
sub edx, ebx
add edi, 0x24
cmp eax, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
jl 0x408baa
jmp 0x4096ec
mov edx, dword [0x4677a8]
mov dword [esp + 0x28], 0
test edx, edx
mov dword [esp + 0x14], 0
jle 0x4090d4
lea eax, [esp + 0x240]
mov dword [esp + 0x10], eax
jmp 0x409018
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x409024
inc dword [eax]
jmp 0x4090a3
xor eax, eax
mov ecx, 0x19
mov dword [esp + 0x54], eax
lea edi, [esp + 0x2e0]
mov dword [esp + 0x58], eax
xor ebx, ebx
test edx, edx
mov word [esp + 0x5c], ax
rep stosd dword es:[edi], eax
jle 0x4090a3
lea ebp, [esp + 0x240]
mov ecx, dword [ebp]
lea edx, [esp + 0x54]
push ecx
push 0x40f078
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2e0]
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
mov edx, dword [0x4677a8]
and ecx, 3
inc ebx
add ebp, 4
cmp ebx, edx
rep movsb byte es:[edi], byte [esi]
jl 0x40904e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
cmp eax, 9
jle 0x4090b3
add eax, 0xfffffff6
jmp 0x4090ba
test eax, eax
jge 0x4090bc
add eax, 0xa
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
add ecx, 4
inc eax
mov dword [esp + 0x10], ecx
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x409014
mov eax, 0x40f958
mov byte [eax], 0
add eax, 0x24
cmp eax, 0x467798
jl 0x4090d9
xor eax, eax
test edx, edx
mov dword [esp + 0x14], eax
jle 0x40914d
mov ebx, dword [0x4677c8]
mov edi, 0x40f958
sub ebx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
cmp eax, ebx
jge 0x409139
sub ebx, eax
xor eax, eax
lea esi, [esp + 0x240]
lea ecx, [edi - 8]
mov ebp, dword [ecx]
cmp ebp, dword [esi]
jne 0x40912b
inc eax
add ecx, 0x24
add esi, 4
cmp eax, edx
jl 0x409117
mov byte [edi], 1
add edi, 0x24
dec ebx
jne 0x40910b
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
inc eax
add edi, 0x24
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jl 0x409105
mov eax, dword [0x4677c8]
xor ebx, ebx
sub eax, edx
test eax, eax
jle 0x4096da
mov dword [esp + 0x18], 0x40f954
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 4], 1
jne 0x4096be
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x178]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
lea eax, [ebx + edx]
lea edx, [eax + eax*8]
mov eax, dword [edx*4 + 0x40f930]
mov edx, dword [ecx]
push eax
push edx
lea eax, [esp + 0x180]
push 0x40f68c
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov edi, dword [esp + 0x4c]
add esp, 0x10
mov ecx, dword [edi + 0x1c0]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov esi, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x14], esi
lea ecx, [edi + 0x1a0]
push 0
jne 0x4091ef
push 0
push 0
lea edx, [esp + 0x184]
push 0
push edx
jmp 0x4091fd
push 1
push 0
lea eax, [esp + 0x184]
push 0
push eax
push esi
push 3
call sub.mfc42.dll_CListCtrl::InsertItem
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x1dc]
mov dword [esp + 0x20], ecx
xor ebp, ebp
mov word [esp + 0x24], cx
mov ecx, 0x19
rep stosd dword es:[edi], eax
mov eax, dword [0x4677a8]
test eax, eax
jle 0x40929d
lea edx, [esp + 0x240]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push ecx
push 0x40f078
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1dc]
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 eax, dword [0x4677a8]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
add ecx, 4
cmp ebp, eax
mov dword [esp + 0x10], ecx
jl 0x40923a
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push 0x40f20c
push 1
push esi
lea ecx, [eax + 0x1a0]
call sub.mfc42.dll_CListCtrl::SetItemText
mov edx, dword [0x4677ac]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, ebx
sub eax, edx
cmp eax, ebx
jge 0x409350
lea ecx, [eax + eax*8]
lea ebp, [ecx*4 + 0x40f950]
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x10], ecx
cmp ebp, 0x40f950
jl 0x409342
mov eax, dword [ebp]
xor edx, edx
mov dword [esp + 0x1c], edx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edx
push 0x40f078
push ecx
mov word [esp + 0x30], dx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
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]
mov eax, dword [esp + 0x10]
add ebp, 0x24
dec eax
mov dword [esp + 0x10], eax
jne 0x4092e4
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4677ac]
mov eax, dword [0x4677a8]
lea edx, [ebx + ecx]
lea ebp, [ebx + eax]
add edx, eax
cmp ebp, edx
jge 0x40940f
lea eax, [ebp + ebp*8]
lea ecx, [eax*4 + 0x40f950]
mov dword [esp + 0x10], ecx
cmp ebp, dword [0x4677c8]
jge 0x40940f
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
mov dword [esp + 0x20], edx
mov word [esp + 0x24], dx
push ecx
lea edx, [esp + 0x20]
push 0x40f078
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb0]
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 eax, dword [0x4677ac]
mov ecx, edx
mov edx, dword [0x4677a8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea ecx, [ebx + eax]
inc ebp
add ecx, edx
add esi, 0x24
cmp ebp, ecx
mov dword [esp + 0x10], esi
jl 0x40938a
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x344]
lea edx, [esp + 0xb0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1dc]
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
lea edx, [esp + 0x350]
push 0x40f65c
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
add esp, 0x14
add ecx, 0x1a0
push 0x40f20c
push 2
push eax
call sub.mfc42.dll_CListCtrl::SetItemText
mov edx, dword [0x4677ac]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, ebx
sub eax, edx
cmp eax, ebx
jge 0x409523
mov ecx, ebx
lea edx, [eax + eax*8]
sub ecx, eax
lea ebp, [edx*4 + 0x40f950]
mov dword [esp + 0x10], ecx
cmp ebp, 0x40f950
jl 0x409511
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov eax, dword [ebp]
test ecx, ecx
je 0x4094cd
sub eax, ecx
jns 0x4094c5
add eax, 0xa
cmp eax, 9
jle 0x4094cd
sub eax, 0xa
push eax
lea ecx, [esp + 0x20]
push 0x40f078
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
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]
mov eax, dword [esp + 0x10]
add ebp, 0x24
dec eax
mov dword [esp + 0x10], eax
jne 0x40949c
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4677ac]
mov eax, dword [0x4677a8]
lea edx, [ebx + ecx]
lea ebp, [ebx + eax]
add edx, eax
cmp ebp, edx
jge 0x4095fd
lea eax, [ebp + ebp*8]
lea ecx, [eax*4 + 0x40f950]
mov dword [esp + 0x10], ecx
cmp ebp, dword [0x4677c8]
jge 0x4095fd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
xor edx, edx
mov eax, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
test ecx, ecx
mov word [esp + 0x24], dx
je 0x409595
sub eax, ecx
jns 0x40958d
add eax, 0xa
cmp eax, 9
jle 0x409595
sub eax, 0xa
push eax
lea ecx, [esp + 0x20]
push 0x40f078
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb0]
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 eax, dword [0x4677ac]
mov ecx, edx
mov edx, dword [0x4677a8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea ecx, [ebx + eax]
inc ebp
add ecx, edx
add esi, 0x24
cmp ebp, ecx
mov dword [esp + 0x10], esi
jl 0x40955d
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x344]
lea edx, [esp + 0xb0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2e0]
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
lea edx, [esp + 0x350]
push 0x40f65c
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x344]
lea esi, [edx + 0x1a0]
push eax
push 3
push ecx
mov ecx, esi
call sub.mfc42.dll_CListCtrl::SetItemText
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
add eax, 5
mov ecx, esi
push eax
push 4
push edi
call sub.mfc42.dll_CListCtrl::SetItemText
mov dl, byte [esp + 0xb0]
xor ecx, ecx
mov dword [esp + 0x6c], ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], ecx
push eax
mov word [esp + 0x78], cx
push 5
push edi
mov ecx, esi
mov byte [esp + 0x78], dl
call sub.mfc42.dll_CListCtrl::SetItemText
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4096a9
push 0x40f1e0
jmp 0x4096ae
push 0x40f5a0
push 6
push edi
mov ecx, esi
call sub.mfc42.dll_CListCtrl::SetItemText
mov edx, dword [0x4677a8]
mov ecx, dword [0x4677c8]
mov edi, dword [esp + 0x18]
inc ebx
sub ecx, edx
add edi, 0x24
cmp ebx, ecx
mov dword [esp + 0x18], edi
jl 0x409166
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 0xa
mov dword [esp + 0x28], eax
jl 0x408ff7
lea ecx, [esp + 0x48]
call fcn.00401ce0
lea ecx, [esp + 0x34]
mov byte [esp + 0x928], 7
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x928], 6
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x928], 5
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x928], 4
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x928], 2
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x928], 1
call fcn.004021c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x928], 0
call fcn.004017c0
mov dword [esp + 0x928], 0xffffffff
lea ecx, [esp + 0x2c]
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x920]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x91c
ret