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

Disassembly:
push 0xffffffffffffffff
push 0x57d90d
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.0054ea7c
mov eax, dword [0x639ad4]
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.00562ecb
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 0x42136f
lea ecx, [esp + 0x18]
mov dword [esp + 0x5cc], eax
call fcn.0056a100
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 [0x639ad4]
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.00562ecb
mov edx, dword [esp + 0x30]
push 0x617dcc
push edx
call fcn.0054f48f
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x3c], esi
je 0x4217f2
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0054f62d
add esp, 0xc
test eax, eax
je 0x4217e9
lea edx, [esp + 0x48]
mov ecx, 0x618814
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x4217e9
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4a]
push ecx
push 0x615ee0
push edx
call fcn.0054f846
add esp, 0xc
cmp eax, 1
jne 0x4217e9
cmp dword [esp + 0x44], 3
jne 0x4217e9
mov eax, dword [0x639ad4]
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 0x42145b
mov esi, dword [esp + 0x3c]
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0054f62d
add esp, 0xc
test eax, eax
je 0x42170e
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4214de
lea eax, [esp + 0x4d]
test eax, eax
je 0x42170a
lea ecx, [esp + 0x4d]
push 0xd
push ecx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x4214a8
mov byte [eax], bl
lea edx, [esp + 0x4d]
push 0xa
push edx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x4214bd
mov byte [eax], bl
lea eax, [esp + 0x4d]
lea ecx, [esp + 0x24]
push eax
push 0x615e9c
push ecx
call fcn.00562ecb
add esp, 0xc
mov byte [esp + 0x15], 1
jmp 0x421700
mov ecx, 3
mov edi, str.large
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x42156b
lea eax, [esp + 0x4e]
test eax, eax
je 0x421700
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x421514
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x421529
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.00562ecb
mov ecx, dword [esp + 0x3c]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x421700
mov byte [esp + 0x14], 1
jmp 0x421700
mov ecx, 9
mov edi, str.largeHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4215f7
lea eax, [esp + 0x51]
test eax, eax
je 0x421700
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x4215a0
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x4215b5
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.00562ecb
mov ecx, dword [esp + 0x40]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x421700
mov byte [esp + 0x17], 1
jmp 0x421700
mov ecx, 3
mov edi, str.small
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x421681
lea eax, [esp + 0x4e]
test eax, eax
je 0x421700
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x42162d
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x421642
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.00562ecb
mov ecx, dword [esp + 0x44]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x421700
mov byte [esp + 0x16], 1
jmp 0x421700
mov ecx, 9
mov edi, str.smallHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x421700
lea eax, [esp + 0x51]
test eax, eax
je 0x421700
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x4216b2
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0054e030
add esp, 8
cmp eax, ebx
je 0x4216c7
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.00562ecb
mov ecx, dword [esp + 0x48]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x421700
mov byte [esp + 0x13], 1
inc ebp
cmp ebp, 7
jl 0x421457
mov esi, dword [esp + 0x3c]
cmp byte [esp + 0x15], bl
je 0x421790
cmp byte [esp + 0x14], bl
je 0x421790
cmp byte [esp + 0x17], bl
je 0x421790
cmp byte [esp + 0x16], bl
je 0x421790
cmp byte [esp + 0x13], bl
je 0x421790
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.00421d10
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.0056a239
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 4]
call fcn.0056a239
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.0056a239
lea eax, [esp + 0x30]
lea ecx, [esi + 0xc]
push eax
call fcn.0056a239
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x10]
call fcn.0056a239
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x5d4], 6
call fcn.0056a100
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d4], 5
call fcn.0056a100
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d4], 4
call fcn.0056a100
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d4], 3
call fcn.0056a100
lea ecx, [esp + 0x24]
mov byte [esp + 0x5d4], 1
call fcn.0056a100
mov edi, dword [esp + 0x40]
push esi
call fcn.0054f2a8
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 0x42181a
call fcn.0056a100
jmp 0x421371
call fcn.0056a100
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 0x421877
mov eax, dword [edx + 0xc]
cmp eax, ebx
je 0x421877
xor edi, edi
cmp eax, ebx
jle 0x421877
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.0054f4a2
add esp, 8
test eax, eax
je 0x421873
mov eax, dword [ebx + 0xc]
inc edi
add esi, 0x14
cmp edi, eax
jl 0x421848
jmp 0x421877
inc edi
mov dword [ebx + 0x20], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.0056a100
mov ecx, dword [esp + 0x5cc]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c8
ret