Function at 0x4097b0
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427c4c
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3f2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x409af9
push 0x408750
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 1
push 0x21
push 0x20
push 0x20
mov dword [0x4366bc], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push pe_nt_image_headers32
push 0x2b4
lea ecx, [ebp - 0x2c8]
push ecx
push 0x80
push str.file.txt
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [ebp - 0x2c8]
mov eax, dword [esi + 0x1c]
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push pe_nt_image_headers32
push 0x2b4
lea ecx, [ebp - 0x2c8]
push ecx
push 0x80
push str.file.dmp
call edi
mov edx, dword [ebp - 0x2c8]
mov eax, dword [esi + 0x1c]
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push pe_nt_image_headers32
push 0x2b4
lea ecx, [ebp - 0x2c8]
push ecx
push 0x80
push str.file.tlg
call edi
mov edx, dword [ebp - 0x2c8]
mov eax, dword [esi + 0x1c]
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea ecx, [ebp - 0x2f8]
push ecx
push eax
push 0x1061
mov dword [ebp - 0x2ec], eax
push ebx
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2f8], 4
mov dword [ebp - 0x2ec], str.name
call edi
mov edx, dword [esi + 0x1c]
push edx
push 0
push 0x1003
push ebx
call edi
test byte [0x436680], 1
mov esi, 1
jne 0x40993f
or dword [0x436680], esi
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push esi
lea eax, [ebp - 0x2d4]
push eax
mov ecx, 0x436684
call fcn.00404a30
push 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040b7f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2d4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40998b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [0x436680], 1
jne 0x4099ac
or dword [0x436680], esi
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push 2
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, 0x436684
call fcn.00404a30
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x2cc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4099e1
push 0
push ebx
lea ecx, [ebp - 0x2cc]
call fcn.0040b7f0
test byte [0x436680], 1
jne 0x409a02
or dword [0x436680], esi
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
mov esi, 0x20
lea edi, [ebp - 0x2d0]
mov eax, 0x436684
call fcn.00404a00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2d0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409a36
push 1
push ebx
mov ecx, edi
call fcn.0040b7f0
cmp dword [0x4366ec], 0
je 0x409aaa
test byte [0x436680], 1
jne 0x409a61
or dword [0x436680], 1
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
mov esi, 0x167
lea edi, [ebp - 0x2d8]
mov eax, 0x436684
call fcn.00404a00
push 1
push ebx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040b7f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2d8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2d0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ad0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2cc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409af9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret