Function at 0x403820
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40e856
push eax
mov eax, 0x2000
mov dword fs:[0], esp
call fcn.0040e1b0
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
mov ebx, 1
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xad]
mov byte [esp + 0xac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xac]
push 0x104
push eax
push esi
mov dword [esp + 0x2024], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xac]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], 0
mov edi, str.ToolTip.jpg
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0xac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea ecx, [ebp + 0x88]
mov dword [esp + 0x28], ecx
call fcn.00407360
xor eax, eax
mov dword [0x41459c], eax
mov dword [0x414598], eax
call fcn.004013c0
cmp dword [esp + 0x2024], 3
jne 0x403b05
mov esi, dword [0x4147ac]
mov ecx, 0x28a
xor eax, eax
mov edi, 0x4147b0
rep stosd dword es:[edi], eax
mov ecx, 0xa0
mov edi, 0x4151d8
push 0x4147ac
push 0x4151d8
rep stosd dword es:[edi], eax
push 0x4147b0
call fcn.00406880
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x4039ba
cmp dword [0x4147ac], esi
jle 0x4039ba
push 0xe012
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403999
mov ecx, dword [esp + 0x1c]
push ebx
push 0x1f4
push 0xbb8
push 0x1f4
push ecx
lea ecx, [ebp + 0x10c]
call fcn.00409120
jmp 0x403a5a
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0040df84
push 2
push 3
mov ecx, ebp
call fcn.004051e0
jmp 0x403a5a
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push 0xe045
lea ecx, [esp + 0x1c]
mov byte [esp + 0x201c], bl
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x4147ac]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x403a3f
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 2
lea ecx, [esp + 0x44]
push 2
push ecx
mov ecx, dword [esp + 0x48]
push 0x23
call sub.MFC42.DLL_CTreeCtrl::InsertItem
lea ecx, [esp + 0x18]
mov dword [0x415460], 3
mov byte [esp + 0x2018], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x4147ac]
push edx
push str.g_DeviceNum:_d
call fcn.00407dc0
mov eax, dword [0x4147ac]
add esp, 8
test eax, eax
jle 0x403afc
mov dword [0x415460], ebx
xor edx, edx
xor ebp, ebp
mov ebx, eax
lea edi, [edx + 0x4147b0]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + edx + 0x7b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
add edx, 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x4151d8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + ebp + 0x1b0]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebp, 0x40
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x403a87
mov eax, dword [0x4147ac]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x403c49
lea ecx, [esp + 0x1b0]
lea eax, [esp + 0x7b0]
mov edx, 0x4151d8
mov ebp, 0x4147b0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x2020]
test esi, esi
je 0x403bd9
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403bd9
mov eax, ebp
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x403b6c
test cl, cl
je 0x403b68
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x403b6c
add eax, 2
add esi, 2
test cl, cl
jne 0x403b48
xor eax, eax
jmp 0x403b71
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403bd9
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
add ebx, 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
inc esi
add eax, 0x40
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
jmp 0x403bed
mov ecx, 0x41
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
add ebp, 0x104
add edx, 0x40
cmp ebp, 0x4151d8
jl 0x403b25
mov esi, dword [esp + 0x14]
mov eax, dword [0x4147ac]
cmp esi, eax
mov dword [esp + 0x14], esi
jge 0x403c3f
push 0xe013
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::LoadStringA
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0040df84
mov ecx, dword [esp + 0x24]
push 3
push 2
call fcn.004051e0
mov ebp, dword [esp + 0x20]
mov dword [0x4147ac], esi
call fcn.00401410
mov ecx, ebp
call fcn.004036c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403d67
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jle 0x403d5e
mov eax, ebp
or ecx, 0xffffffff
shl eax, 6
add eax, ebp
lea ebx, [esp + eax*4 + 0x7b0]
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x24], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00403e30
test eax, eax
je 0x403d51
mov ecx, ebp
lea eax, [esp + 0x10]
shl ecx, 6
lea edx, [esp + ecx + 0x1b0]
mov ecx, esi
push edx
push ebx
push eax
call fcn.00403f30
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0
push 0
push 0
push 4
push edx
call sub.MFC42.DLL_CTreeCtrl::SetItem
test ebp, ebp
jne 0x403d51
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xa8]
push eax
push 9
push 0x110b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0x7b0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4146a4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
call fcn.00403da0
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x403c6f
mov ecx, dword [esp + 0x28]
call fcn.00407440
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2018], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x200c
ret 8