Function at 0x402760
Capabilities:
Access peb ldr_data
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x406ee5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
mov ebx, ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x4089a8
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push eax
lea eax, [ebx + 0xe0]
push eax
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x44], 4
call fcn.004017c0
push 0x408cfc
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x50], 5
call fcn.00401860
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebx + 0xe8]
test eax, eax
jle 0x4029d4
mov eax, dword [ebx + 0x98]
push esi
push 0
push 0
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
je 0x4029d3
push ebp
push edi
lea edi, [ebx + 0x78]
mov ecx, dword [ebx + 0x98]
push esi
push 4
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov ebp, eax
call sub.MFC71.DLL_CTreeCtrl::GetItemText
push ebp
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0x4c], 7
call sub.MFC71.DLL_CTreeCtrl::GetItemText
test ebp, ebp
mov byte [esp + 0x44], 8
jne 0x402999
push esi
mov ecx, edi
call sub.MFC71.DLL_CTreeCtrl::GetItemData
lea ecx, [esp + 0x14]
mov ebp, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x4089a8
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x50], 0xa
call fcn.004017c0
add ebp, 0x200
push ebp
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x5c], 0xb
call fcn.00401860
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xc
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call dword [0x4081c0]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x80000
lea ecx, [esp + 0x10]
ja 0x402963
test al, 0x10
je 0x402963
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0
push 0
push 1
push 1
jmp 0x402973
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x22
mov ecx, edi
push esi
call sub.MFC71.DLL_CTreeCtrl::SetItem
push esi
mov ecx, ebx
call fcn.00402240
push esi
mov ecx, ebx
call fcn.00402240
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [ebx + 0x98]
push esi
push 6
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x28]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test esi, esi
jne 0x402855
pop edi
pop ebp
pop esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x30]
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret