Function at 0x41bf30
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51eb50
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov esi, ecx
push edi
push eax
push 4
mov ecx, dword [esi + 0x20]
push 0x110a
push ecx
call ebx
mov edi, eax
test edi, edi
je 0x41c169
mov ecx, esi
call fcn.0041aad0
test eax, eax
jne 0x41c169
mov edx, dword [esi + 0x20]
push edi
push 1
push 0x110a
push edx
call ebx
mov ebp, eax
push edi
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.0041bb70
cmp eax, 1
push edi
jne 0x41c158
mov eax, dword [esi + 0x20]
push 3
push 0x110a
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffff0000
je 0x41c144
test ebp, ebp
je 0x41c144
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_3
push edi
mov ecx, esi
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CTreeCtrl::GetItemData
test eax, eax
je 0x41c03b
push 0x561838
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esi + 0x78]
mov ecx, dword [esp + 0x18]
dec edx
mov byte [esp + 0x28], 1
mov eax, edx
mov dword [esi + 0x78], edx
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, esi
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push ebp
call sub.MFC42.DLL_CTreeCtrl::SetItem
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x18]
jmp 0x41c12e
lea ecx, [esp + 0x14]
push edi
push ecx
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::GetItemText
mov edx, dword [esp + 0x14]
mov byte [esp + 0x28], 2
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41c125
push 0x561800
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x41c0cc
mov ecx, dword [esi + 0x68]
or eax, 0xffffffff
add ecx, eax
mov dword [esi + 0x68], ecx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
adc edx, eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x6c], edx
push eax
mov eax, dword [esi + 0x68]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x48]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push eax
jmp 0x41c10d
mov edx, dword [esi + 0x70]
or eax, 0xffffffff
add edx, eax
mov dword [esi + 0x70], edx
mov ecx, dword [esi + 0x74]
adc ecx, eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x74], ecx
mov edx, dword [esi + 0x70]
push ecx
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x48]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push ebp
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::SetItem
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x20]
push edi
push 0
push 0x1101
push edx
call ebx
mov ebp, dword [esp + 0x1c]
jmp 0x41c15f
mov ecx, esi
call fcn.0041bf30
test ebp, ebp
mov edi, ebp
jne 0x41bf70
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4