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

Disassembly:
push 0xffffffffffffffff
push 0x54ac4d
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.0051d13a
mov eax, dword [0x5b5ecc]
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.0053091a
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 0x41a7af
lea ecx, [esp + 0x18]
mov dword [esp + 0x5cc], eax
call fcn.00537b04
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 [0x5b5ecc]
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.0053091a
mov edx, dword [esp + 0x30]
push 0x59a220
push edx
call fcn.0051dc3f
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x3c], esi
je 0x41ac32
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0051de71
add esp, 0xc
test eax, eax
je 0x41ac29
lea edx, [esp + 0x48]
mov ecx, 0x59a298
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x41ac29
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4a]
push ecx
push 0x597df0
push edx
call fcn.0051de3d
add esp, 0xc
cmp eax, 1
jne 0x41ac29
cmp dword [esp + 0x44], 3
jne 0x41ac29
mov eax, dword [0x5b5ecc]
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 0x41a89b
mov esi, dword [esp + 0x3c]
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0051de71
add esp, 0xc
test eax, eax
je 0x41ab4e
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41a91e
lea eax, [esp + 0x4d]
test eax, eax
je 0x41ab4a
lea ecx, [esp + 0x4d]
push 0xd
push ecx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41a8e8
mov byte [eax], bl
lea edx, [esp + 0x4d]
push 0xa
push edx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41a8fd
mov byte [eax], bl
lea eax, [esp + 0x4d]
lea ecx, [esp + 0x24]
push eax
push 0x597ddc
push ecx
call fcn.0053091a
add esp, 0xc
mov byte [esp + 0x15], 1
jmp 0x41ab40
mov ecx, 3
mov edi, str.large
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x41a9ab
lea eax, [esp + 0x4e]
test eax, eax
je 0x41ab40
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41a954
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41a969
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.0053091a
mov ecx, dword [esp + 0x3c]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ab40
mov byte [esp + 0x14], 1
jmp 0x41ab40
mov ecx, 9
mov edi, str.largeHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41aa37
lea eax, [esp + 0x51]
test eax, eax
je 0x41ab40
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41a9e0
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41a9f5
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.0053091a
mov ecx, dword [esp + 0x40]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ab40
mov byte [esp + 0x17], 1
jmp 0x41ab40
mov ecx, 3
mov edi, str.small
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x41aac1
lea eax, [esp + 0x4e]
test eax, eax
je 0x41ab40
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41aa6d
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41aa82
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.0053091a
mov ecx, dword [esp + 0x44]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ab40
mov byte [esp + 0x16], 1
jmp 0x41ab40
mov ecx, 9
mov edi, str.smallHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41ab40
lea eax, [esp + 0x51]
test eax, eax
je 0x41ab40
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41aaf2
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0051c7f0
add esp, 8
cmp eax, ebx
je 0x41ab07
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.0053091a
mov ecx, dword [esp + 0x48]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ab40
mov byte [esp + 0x13], 1
inc ebp
cmp ebp, 7
jl 0x41a897
mov esi, dword [esp + 0x3c]
cmp byte [esp + 0x15], bl
je 0x41abd0
cmp byte [esp + 0x14], bl
je 0x41abd0
cmp byte [esp + 0x17], bl
je 0x41abd0
cmp byte [esp + 0x16], bl
je 0x41abd0
cmp byte [esp + 0x13], bl
je 0x41abd0
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.0041b150
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.00537c3d
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 4]
call fcn.00537c3d
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.00537c3d
lea eax, [esp + 0x30]
lea ecx, [esi + 0xc]
push eax
call fcn.00537c3d
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x10]
call fcn.00537c3d
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x5d4], 6
call fcn.00537b04
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d4], 5
call fcn.00537b04
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d4], 4
call fcn.00537b04
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d4], 3
call fcn.00537b04
lea ecx, [esp + 0x24]
mov byte [esp + 0x5d4], 1
call fcn.00537b04
mov edi, dword [esp + 0x40]
push esi
call fcn.0051da58
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 0x41ac5a
call fcn.00537b04
jmp 0x41a7b1
call fcn.00537b04
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 0x41acb7
mov eax, dword [edx + 0xc]
cmp eax, ebx
je 0x41acb7
xor edi, edi
cmp eax, ebx
jle 0x41acb7
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.0051c942
add esp, 8
test eax, eax
je 0x41acb3
mov eax, dword [ebx + 0xc]
inc edi
add esi, 0x14
cmp edi, eax
jl 0x41ac88
jmp 0x41acb7
inc edi
mov dword [ebx + 0x20], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x5cc]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c8
ret