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

Disassembly:
push 0xffffffffffffffff
push 0x427faf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 1
mov dword [esp + 0x24], ebp
call fcn.004249b8
mov eax, dword [esi + 0x44]
mov dword [esp + 0x134], ebp
cmp eax, ebp
je 0x41cc6e
mov ecx, dword [esi + 0x88]
cmp ecx, ebp
je 0x41cc37
mov eax, dword [ecx]
push 1
call dword [eax + 4]
movsx ecx, word [esi + 0x52]
movsx edx, word [esi + 0x50]
imul ecx, edx
xor ebx, ebx
test ecx, ecx
jle 0x41cc6e
lea edi, [esi + 0x8c]
mov ecx, dword [edi]
cmp ecx, ebp
je 0x41cc5b
mov eax, dword [ecx]
push 1
call dword [eax + 4]
movsx ecx, word [esi + 0x52]
movsx edx, word [esi + 0x50]
imul ecx, edx
inc ebx
add edi, 4
cmp ebx, ecx
jl 0x41cc4e
mov cx, word [esp + 0x140]
mov ax, word [esp + 0x13c]
lea edx, [esp + 0x1c]
mov word [esi + 0x52], cx
push edx
mov ecx, esi
mov dword [esi + 0x44], 1
mov word [esi + 0x50], ax
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov eax, dword [esi + 0x20]
push ebp
push ebp
mov word [esi + 0x54], bp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0x31
push eax
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0x78]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0x5a
mov ecx, dword [edi + 8]
push ecx
call ebx
mov edx, dword [esp + 0x78]
push 0x48
dec edx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, 0xfffffffe
lea edx, [esp + 0x70]
sub ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x5a
push edi
call ebx
push 0x58
push edi
mov dword [esp + 0x1c], eax
call ebx
push edi
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x14], 0x78
jne 0x41cd58
cmp ebx, 0x78
jne 0x41cd58
sub dword [esp + 0x18], 3
push 0x4329f8
lea ecx, [esi + 0x80]
call fcn.00424aa8
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x64]
mov cx, word [esi + 0x50]
mov eax, ebx
movsx edi, cx
cdq
idiv edi
mov edx, eax
mov eax, ebx
imul ecx, edx
sub eax, ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x58], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x20], edx
je 0x41d077
xor edi, edi
mov dword [esp + 0x10], eax
cmp word [esi + 0x52], di
jle 0x41d397
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
movsx eax, word [esi + 0x50]
test eax, eax
jle 0x41d05d
movsx ecx, cx
mov ebx, ecx
imul ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x10]
inc ebx
imul ebx, ecx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
movsx ecx, word [esp + 0x58]
sub eax, ecx
cmp ebx, eax
jg 0x41ce28
movsx eax, dx
mov edx, eax
lea ecx, [ebx + 1]
imul edx, ebx
imul ecx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
jmp 0x41ce53
inc eax
cmp ebx, eax
movsx eax, dx
jne 0x41ce3b
mov edx, eax
imul edx, ebx
mov dword [esp + 0x2c], edx
jmp 0x41ce45
lea ecx, [eax + 1]
imul ecx, ebx
mov dword [esp + 0x2c], ecx
lea edx, [eax + 1]
imul edx, ebx
lea eax, [edx + eax + 1]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41cf4b
test edi, edi
jne 0x41cf4b
mov ecx, dword [esi + 0x20]
push edi
push edi
push 0x31
push ecx
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov eax, dword [eax + 4]
lea edx, [esp + 0xb4]
push edx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x38]
push 0x40
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x134], 1
je 0x41ced7
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x429e70
mov ecx, edi
jmp 0x41ced9
xor ecx, ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
dec edx
mov dword [esp + 0x40], edx
push 0x3e8
lea edx, [esp + 0x40]
dec eax
push esi
inc edi
push edx
push 0x50800000
mov byte [esp + 0x144], 0
mov dword [esi + 0x88], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edi
call sub.MFC42.DLL_CEdit::Create
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x31
push eax
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov ecx, dword [esi + 0x88]
test eax, eax
je 0x41cf36
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push 1
push eax
push 0x30
push ecx
call ebp
mov edi, 1
jmp 0x41d03d
push 0x6c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x134], 2
je 0x41cf6f
push esi
mov ecx, eax
call fcn.0041ea00
jmp 0x41cf71
xor eax, eax
test eax, eax
mov byte [esp + 0x134], 0
mov dword [esi + edi*4 + 0x8c], eax
je 0x41d050
lea edx, [edi + 0x3e8]
lea ecx, [esp + 0x2c]
push edx
push esi
push ecx
push 0x1000000b
push 0x4329f8
mov ecx, eax
call sub.MFC42.DLL_CButton::Create
test eax, eax
je 0x41d050
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41cfe2
test edi, edi
jne 0x41cfe2
mov eax, dword [esi + 0x8c]
mov dword [eax + 0x4c], 1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x8c]
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [esi + 0x8c]
push edi
call sub.MFC42.DLL_CWnd::EnableWindow
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x31
push eax
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov ecx, dword [esi + edi*4 + 0x8c]
test eax, eax
je 0x41d002
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push 1
push eax
push 0x30
push ecx
call ebp
mov eax, dword [esi + edi*4 + 0x8c]
lea edx, [esi + 0x74]
mov dword [eax + 0x64], edx
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x41d02f
mov eax, dword [esi + edi*4 + 0x8c]
mov dword [eax + 0x48], 1
mov ecx, dword [esi + edi*4 + 0x8c]
mov eax, dword [esi + 0x70]
inc edi
mov dword [ecx + 0x40], eax
movsx eax, word [esi + 0x50]
mov edx, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jl 0x41cdf5
jmp 0x41d05d
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x10]
movsx ecx, word [esi + 0x52]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41cdb5
jmp 0x41d397
xor ecx, ecx
cmp edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], eax
jle 0x41d397
jmp 0x41d08d
xor eax, eax
cmp word [esi + 0x52], ax
mov dword [esp + 0x4c], eax
jle 0x41d386
movsx ebx, word [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
test ecx, ecx
jne 0x41d0ba
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add eax, edx
mov dword [esp + 0x24], eax
movsx eax, word [esi + 0x50]
movsx edx, word [esp + 0x58]
mov edi, dword [esp + 0x28]
sub eax, edx
cmp ecx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ebx
jg 0x41d0e9
movsx edx, word [esp + 0x20]
mov eax, edx
imul eax, ecx
inc ecx
mov dword [esp + 0x2c], eax
imul ecx, edx
jmp 0x41d10d
inc eax
cmp ecx, eax
movsx ecx, word [esp + 0x20]
mov eax, ecx
je 0x41d0f8
lea eax, [ecx + 1]
imul eax, dword [esp + 0x10]
lea edx, [ecx + 1]
mov dword [esp + 0x2c], eax
imul edx, dword [esp + 0x10]
lea ecx, [edx + ecx + 1]
mov edx, dword [esi + 0x48]
mov dword [esp + 0x34], ecx
test edx, edx
je 0x41d1fa
mov edx, dword [esp + 0x50]
test edx, edx
jne 0x41d1fa
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x31
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov edx, dword [eax + 4]
lea ecx, [esp + 0xb4]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0x40
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
test edi, edi
mov byte [esp + 0x134], 3
je 0x41d18b
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x429e70
mov ecx, edi
jmp 0x41d18d
xor ecx, ecx
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
push 0x3e8
lea edx, [esp + 0x40]
add ebx, eax
push esi
inc edi
push edx
push 0x50800000
mov byte [esp + 0x144], 0
mov dword [esi + 0x88], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], edi
call sub.MFC42.DLL_CEdit::Create
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x31
push eax
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov ecx, dword [esi + 0x88]
test eax, eax
je 0x41d1ef
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push 1
push eax
push 0x30
push ecx
call ebp
push 0x6c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
mov byte [esp + 0x134], 4
je 0x41d21e
push esi
mov ecx, eax
call fcn.0041ea00
jmp 0x41d220
xor eax, eax
mov edi, dword [esp + 0x50]
mov byte [esp + 0x134], 0
mov dword [esi + edi*4 + 0x8c], eax
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x41d24c
test edi, edi
jne 0x41d24c
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
add ecx, edx
mov dword [esp + 0x34], ecx
test eax, eax
je 0x41d373
lea edx, [edi + 0x3e8]
lea ecx, [esp + 0x2c]
push edx
push esi
push ecx
push 0x1000000b
push 0x4329f8
mov ecx, eax
call sub.MFC42.DLL_CButton::Create
test eax, eax
je 0x41d373
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41d2ba
test edi, edi
jne 0x41d2ba
mov eax, dword [esi + 0x8c]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov dword [eax + 0x4c], 1
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x8c]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [esi + 0x8c]
push edi
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x31
push ecx
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov eax, dword [eax + 4]
lea edx, [esp + 0xf0]
push edx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x31
push ecx
call ebp
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov ecx, dword [esi + edi*4 + 0x8c]
test eax, eax
je 0x41d300
mov eax, dword [eax + 4]
mov edx, dword [ecx + 0x20]
push 1
push eax
push 0x30
push edx
call ebp
mov eax, dword [esi + edi*4 + 0x8c]
lea ecx, [esi + 0x74]
mov dword [eax + 0x64], ecx
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x41d32d
mov eax, dword [esi + edi*4 + 0x8c]
mov dword [eax + 0x48], 1
mov ecx, dword [esi + edi*4 + 0x8c]
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x14]
inc edi
mov dword [ecx + 0x40], eax
mov ecx, dword [esp + 0x4c]
movsx eax, word [esp + 0x18]
movsx edx, word [esi + 0x52]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x28]
inc ecx
add edi, eax
add ebx, eax
mov dword [esp + 0x4c], ecx
cmp ecx, edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ebx
jl 0x41d0a8
jmp 0x41d386
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], 0
mov dword [esi + 0x44], 0
movsx eax, word [esi + 0x50]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x41d08b
mov eax, dword [esi + 0x58]
test eax, eax
je 0x41d3e3
movsx ecx, word [esp + 0x24]
mov edi, dword [esp + 0x64]
mov edx, dword [esi]
add ecx, 2
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], ecx
add edi, 4
push 0
push eax
mov ecx, esi
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], edi
call dword [edx + 0x68]
mov ecx, dword [esp + 0x68]
push 6
movsx edx, di
push ecx
push edx
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
lea ecx, [esp + 0x1c]
mov word [esi + 0x40], 0
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8