Function at 0x41cfd0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x55564d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5bc
push ebx
push edi
lea eax, [esp + 0x2c0]
push 0x104
xor ebx, ebx
push eax
mov dword [esp + 0x38], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x4c4]
lea edx, [esp + 0x3c4]
push ecx
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x2cc]
push ecx
push edx
call fcn.0052776a
mov eax, dword [0x5c2a74]
add esp, 0x14
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x80]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_sToolbar.tbi
push eax
mov dword [esp + 0x5dc], ebx
call fcn.0053afda
mov edx, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x180]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x38], edi
jne 0x41d0af
lea ecx, [esp + 0x18]
mov dword [esp + 0x5cc], eax
call fcn.005421be
pop edi
pop ebx
mov ecx, dword [esp + 0x5bc]
mov dword fs:[0], ecx
add esp, 0x5c8
ret
push ebp
push esi
mov eax, dword [0x5c2a74]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1b4]
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_sToolbar_s
push ecx
mov byte [esp + 0x5e8], 1
call fcn.0053afda
mov edx, dword [esp + 0x30]
push 0x5a5c8c
push edx
call fcn.0052825f
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x3c], esi
je 0x41d532
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0052834e
add esp, 0xc
test eax, eax
je 0x41d529
lea edx, [esp + 0x48]
mov ecx, 0x5a6574
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x41d529
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4a]
push ecx
push 0x5a3e38
push edx
call fcn.005284dc
add esp, 0xc
cmp eax, 1
jne 0x41d529
cmp dword [esp + 0x44], 3
jne 0x41d529
mov eax, dword [0x5c2a74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x5d4], 2
mov byte [esp + 0x15], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x13], bl
xor ebp, ebp
jmp 0x41d19b
mov esi, dword [esp + 0x3c]
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0052834e
add esp, 0xc
test eax, eax
je 0x41d44e
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41d21e
lea eax, [esp + 0x4d]
test eax, eax
je 0x41d44a
lea ecx, [esp + 0x4d]
push 0xd
push ecx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d1e8
mov byte [eax], bl
lea edx, [esp + 0x4d]
push 0xa
push edx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d1fd
mov byte [eax], bl
lea eax, [esp + 0x4d]
lea ecx, [esp + 0x24]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
mov byte [esp + 0x15], 1
jmp 0x41d440
mov ecx, 3
mov edi, str.large
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x41d2ab
lea eax, [esp + 0x4e]
test eax, eax
je 0x41d440
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d254
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d269
mov byte [eax], bl
lea eax, [esp + 0x4e]
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x34]
push str._s_sToolbar_s
push eax
call fcn.0053afda
mov ecx, dword [esp + 0x3c]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41d440
mov byte [esp + 0x14], 1
jmp 0x41d440
mov ecx, 9
mov edi, str.largeHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41d337
lea eax, [esp + 0x51]
test eax, eax
je 0x41d440
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d2e0
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d2f5
mov byte [eax], bl
lea eax, [esp + 0x51]
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x38]
push str._s_sToolbar_s
push eax
call fcn.0053afda
mov ecx, dword [esp + 0x40]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41d440
mov byte [esp + 0x17], 1
jmp 0x41d440
mov ecx, 3
mov edi, str.small
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x41d3c1
lea eax, [esp + 0x4e]
test eax, eax
je 0x41d440
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d36d
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d382
mov byte [eax], bl
lea eax, [esp + 0x4e]
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x3c]
push str._s_sToolbar_s
push eax
call fcn.0053afda
mov ecx, dword [esp + 0x44]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41d440
mov byte [esp + 0x16], 1
jmp 0x41d440
mov ecx, 9
mov edi, str.smallHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41d440
lea eax, [esp + 0x51]
test eax, eax
je 0x41d440
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d3f2
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.00526d60
add esp, 8
cmp eax, ebx
je 0x41d407
mov byte [eax], bl
lea eax, [esp + 0x51]
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x40]
push str._s_sToolbar_s
push eax
call fcn.0053afda
mov ecx, dword [esp + 0x48]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41d440
mov byte [esp + 0x13], 1
inc ebp
cmp ebp, 7
jl 0x41d197
mov esi, dword [esp + 0x3c]
cmp byte [esp + 0x15], bl
je 0x41d4d0
cmp byte [esp + 0x14], bl
je 0x41d4d0
cmp byte [esp + 0x17], bl
je 0x41d4d0
cmp byte [esp + 0x16], bl
je 0x41d4d0
cmp byte [esp + 0x13], bl
je 0x41d4d0
mov edx, dword [esp + 0x38]
push 0xffffffffffffffff
mov edi, dword [edx + 0xc]
lea esi, [edx + 4]
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.0041da50
mov edx, dword [esi + 4]
lea ecx, [edi + edi*4]
lea eax, [esp + 0x24]
lea esi, [edx + ecx*4]
push eax
mov ecx, esi
call fcn.005422f7
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 4]
call fcn.005422f7
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.005422f7
lea eax, [esp + 0x30]
lea ecx, [esi + 0xc]
push eax
call fcn.005422f7
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x10]
call fcn.005422f7
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x5d4], 6
call fcn.005421be
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d4], 5
call fcn.005421be
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d4], 4
call fcn.005421be
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d4], 3
call fcn.005421be
lea ecx, [esp + 0x24]
mov byte [esp + 0x5d4], 1
call fcn.005421be
mov edi, dword [esp + 0x40]
push esi
call fcn.00528078
add esp, 4
lea edx, [esp + 0x188]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov byte [esp + 0x5d4], bl
lea ecx, [esp + 0x1c]
je 0x41d55a
call fcn.005421be
jmp 0x41d0b1
call fcn.005421be
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [edx + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41d5b7
mov eax, dword [edx + 0xc]
cmp eax, ebx
je 0x41d5b7
xor edi, edi
cmp eax, ebx
jle 0x41d5b7
xor esi, esi
mov ebx, dword [esp + 0x38]
mov eax, esi
mov ebp, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
add eax, ebp
mov eax, dword [eax]
push eax
push ecx
call fcn.00526f6c
add esp, 8
test eax, eax
je 0x41d5b3
mov eax, dword [ebx + 0xc]
inc edi
add esi, 0x14
cmp edi, eax
jl 0x41d588
jmp 0x41d5b7
inc edi
mov dword [ebx + 0x20], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x5cc]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c8
ret