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

Disassembly:
push 0xffffffffffffffff
push 0x59a42d
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.0056b52c
mov eax, dword [0x65ca8c]
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.0057f8fb
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 0x4232af
lea ecx, [esp + 0x18]
mov dword [esp + 0x5cc], eax
call fcn.00586b33
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 [0x65ca8c]
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.0057f8fb
mov edx, dword [esp + 0x30]
push 0x639060
push edx
call fcn.0056bf3f
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x3c], esi
je 0x423732
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0056c11a
add esp, 0xc
test eax, eax
je 0x423729
lea edx, [esp + 0x48]
mov ecx, 0x639b5c
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x423729
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4a]
push ecx
push 0x636fe4
push edx
call fcn.0056c333
add esp, 0xc
cmp eax, 1
jne 0x423729
cmp dword [esp + 0x44], 3
jne 0x423729
mov eax, dword [0x65ca8c]
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 0x42339b
mov esi, dword [esp + 0x3c]
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0056c11a
add esp, 0xc
test eax, eax
je 0x42364e
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x42341e
lea eax, [esp + 0x4d]
test eax, eax
je 0x42364a
lea ecx, [esp + 0x4d]
push 0xd
push ecx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x4233e8
mov byte [eax], bl
lea edx, [esp + 0x4d]
push 0xa
push edx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x4233fd
mov byte [eax], bl
lea eax, [esp + 0x4d]
lea ecx, [esp + 0x24]
push eax
push 0x636fa0
push ecx
call fcn.0057f8fb
add esp, 0xc
mov byte [esp + 0x15], 1
jmp 0x423640
mov ecx, 3
mov edi, str.large
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x4234ab
lea eax, [esp + 0x4e]
test eax, eax
je 0x423640
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x423454
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x423469
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.0057f8fb
mov ecx, dword [esp + 0x3c]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423640
mov byte [esp + 0x14], 1
jmp 0x423640
mov ecx, 9
mov edi, str.largeHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x423537
lea eax, [esp + 0x51]
test eax, eax
je 0x423640
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x4234e0
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x4234f5
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.0057f8fb
mov ecx, dword [esp + 0x40]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423640
mov byte [esp + 0x17], 1
jmp 0x423640
mov ecx, 3
mov edi, str.small
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x4235c1
lea eax, [esp + 0x4e]
test eax, eax
je 0x423640
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x42356d
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x423582
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.0057f8fb
mov ecx, dword [esp + 0x44]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423640
mov byte [esp + 0x16], 1
jmp 0x423640
mov ecx, 9
mov edi, str.smallHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x423640
lea eax, [esp + 0x51]
test eax, eax
je 0x423640
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x4235f2
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0056aa70
add esp, 8
cmp eax, ebx
je 0x423607
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.0057f8fb
mov ecx, dword [esp + 0x48]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423640
mov byte [esp + 0x13], 1
inc ebp
cmp ebp, 7
jl 0x423397
mov esi, dword [esp + 0x3c]
cmp byte [esp + 0x15], bl
je 0x4236d0
cmp byte [esp + 0x14], bl
je 0x4236d0
cmp byte [esp + 0x17], bl
je 0x4236d0
cmp byte [esp + 0x16], bl
je 0x4236d0
cmp byte [esp + 0x13], bl
je 0x4236d0
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.00423c50
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.00586c6c
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 4]
call fcn.00586c6c
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.00586c6c
lea eax, [esp + 0x30]
lea ecx, [esi + 0xc]
push eax
call fcn.00586c6c
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x10]
call fcn.00586c6c
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x5d4], 6
call fcn.00586b33
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d4], 5
call fcn.00586b33
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d4], 4
call fcn.00586b33
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d4], 3
call fcn.00586b33
lea ecx, [esp + 0x24]
mov byte [esp + 0x5d4], 1
call fcn.00586b33
mov edi, dword [esp + 0x40]
push esi
call fcn.0056bd58
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 0x42375a
call fcn.00586b33
jmp 0x4232b1
call fcn.00586b33
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 0x4237b7
mov eax, dword [edx + 0xc]
cmp eax, ebx
je 0x4237b7
xor edi, edi
cmp eax, ebx
jle 0x4237b7
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.0056bf52
add esp, 8
test eax, eax
je 0x4237b3
mov eax, dword [ebx + 0xc]
inc edi
add esi, 0x14
cmp edi, eax
jl 0x423788
jmp 0x4237b7
inc edi
mov dword [ebx + 0x20], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x5cc]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c8
ret