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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e4528
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x40a031
lea edi, [esi + 0x1c0]
push ebx
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::ItemHasChildren
test eax, eax
jne 0x40a031
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
mov eax, dword [esi + 0x1e0]
push 0x110a
push eax
call ebp
cmp ebx, eax
je 0x40a031
push ebx
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::GetItemData
mov edx, eax
cmp edx, 0xc8
mov dword [esp + 0x1c], edx
jne 0x409ea3
mov ecx, dword [esi + 0x244]
xor eax, eax
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 0x40]
mov dword [esp + 0x30], ecx
mov edi, dword [ecx + 0xe8]
test edi, edi
jle 0x409ea3
mov edx, dword [ecx + 0xe4]
xor edi, edi
mov ebx, dword [edx + eax*4]
mov edx, dword [ebx + 0x5c]
test edx, edx
jle 0x409df3
lea eax, [esp + 0x40]
push edi
push eax
lea ecx, [ebx + 0x54]
call fcn.0040b280
mov eax, dword [esp + 0x54]
test ah, 0x10
jne 0x409e08
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], 0xffffffff
call fcn.00456e80
mov eax, dword [ebx + 0x5c]
inc edi
cmp edi, eax
jl 0x409dbb
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 0xe8]
inc eax
cmp eax, edx
mov dword [esp + 0x18], eax
jge 0x409e98
jmp 0x409da9
or edi, 0xffffffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.00456e80
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CString::CString
mov ebx, 1
push 0xa295
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], ebx
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esi + 0x244]
mov eax, dword [ecx + 0x40]
lea ecx, [esp + 0x1c]
add eax, 0x20
push eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 0x244]
push 0x30
push edx
push eax
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], bl
call fcn.004e2712
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], edi
call fcn.004e2712
jmp 0x40a031
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp edx, 0x76c
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
jne 0x409f07
lea ecx, [esp + 0x30]
lea edi, [esi + 0x110]
push ecx
mov ecx, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004df3f0
fld qword [esp + 0x30]
fmul qword [0x4f5578]
fld st(0)
call sub.MSVCRT.dll__ftol
cmp eax, 0xffffff9c
jl 0x40a00a
cmp eax, 0x64
jg 0x40a00a
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp edx, 0x641
mov dword [esp + 0x80], eax
mov dword [esp + 0x14], eax
je 0x409f24
cmp edx, 0x642
jne 0x409f6f
lea edi, [esi + 0x60]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.004df380
lea eax, [esp + 0x10]
lea ecx, [esp + 0x80]
push eax
push ecx
mov ecx, esi
call fcn.004078f0
mov eax, dword [esp + 0x14]
cmp ax, word [esp + 0x80]
jb 0x40a00c
cmp word [esp + 0x10], ax
jb 0x40a00c
lea edx, [esp + 0x14]
mov dword [esp + 0x80], edx
mov eax, dword [esi + 0x1e0]
push 0
push 0
push 0x110a
push eax
call ebp
mov ecx, dword [esi + 0x1e0]
push ebx
push 3
push 0x110a
push ecx
mov dword [esp + 0x20], eax
call ebp
lea edx, [esp + 0x18]
push ebx
push edx
lea ecx, [esi + 0x1c0]
mov edi, eax
call sub.MFC42.DLL_CTreeCtrl::GetItemText
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
lea ecx, [esi + 0x1c0]
mov dword [esp + 0x84], 3
call sub.MFC42.DLL_CTreeCtrl::GetItemImage
cmp dword [esp + 0x10], edi
jne 0x40a046
mov edx, dword [esi + 0x1e0]
push ebx
push 0
push 0x1101
push edx
call ebp
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x258]
push 0
push ecx
push 0
push 0
push edx
push eax
push 3
lea ecx, [esi + 0x200]
call sub.MFC42.DLL_CListCtrl::InsertItem
jmp 0x40a0ea
fstp st(0)
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetFocus
mov eax, dword [edi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebp
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0xb7
push ecx
call ebp
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4
lea eax, [esp + 0x2c]
push edi
push eax
lea ecx, [esi + 0x1c0]
call sub.MFC42.DLL_CTreeCtrl::GetItemText
lea ecx, [esp + 0x2c]
push 0x50f054
lea edx, [esp + 0x3c]
mov bl, 4
push ecx
push edx
mov byte [esp + 0x84], bl
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x84], 5
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 7
call fcn.004e2712
mov eax, dword [esi + 0x1e0]
push edi
push 0
push 0x1101
push eax
call ebp
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x258]
push 0
push ecx
push 0
push 0
push edx
push eax
push 3
lea ecx, [esi + 0x200]
call sub.MFC42.DLL_CListCtrl::InsertItem
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], bl
call fcn.004e2712
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 3
call fcn.004e2712
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], 0xffffffff
call fcn.004e2712
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x258]
lea ecx, [esi + 0x250]
push eax
push edx
call sub.MFC42.DLL_CUIntArray::SetAtGrow
mov eax, dword [esi + 0x1e0]
push 0
push 9
push 0x110b
push eax
call ebp
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.0040a160
mov eax, dword [esi + 0x244]
mov esi, dword [eax + 0x40]
mov ecx, esi
call fcn.00489c30
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x64]
jmp 0x40a031