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

Disassembly:
push 0xffffffffffffffff
push 0x59bfed
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.0056d0ac
mov eax, dword [0x65ec1c]
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.0058148b
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 0x4233af
lea ecx, [esp + 0x18]
mov dword [esp + 0x5cc], eax
call fcn.005886c0
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 [0x65ec1c]
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.0058148b
mov edx, dword [esp + 0x30]
push 0x63b074
push edx
call fcn.0056dabf
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x3c], esi
je 0x423832
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0056dc9a
add esp, 0xc
test eax, eax
je 0x423829
lea edx, [esp + 0x48]
mov ecx, 0x63bb94
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x423829
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4a]
push ecx
push 0x638fec
push edx
call fcn.0056deb3
add esp, 0xc
cmp eax, 1
jne 0x423829
cmp dword [esp + 0x44], 3
jne 0x423829
mov eax, dword [0x65ec1c]
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 0x42349b
mov esi, dword [esp + 0x3c]
push esi
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.0056dc9a
add esp, 0xc
test eax, eax
je 0x42374e
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x42351e
lea eax, [esp + 0x4d]
test eax, eax
je 0x42374a
lea ecx, [esp + 0x4d]
push 0xd
push ecx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x4234e8
mov byte [eax], bl
lea edx, [esp + 0x4d]
push 0xa
push edx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x4234fd
mov byte [eax], bl
lea eax, [esp + 0x4d]
lea ecx, [esp + 0x24]
push eax
push 0x638fa8
push ecx
call fcn.0058148b
add esp, 0xc
mov byte [esp + 0x15], 1
jmp 0x423740
mov ecx, 3
mov edi, str.large
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x4235ab
lea eax, [esp + 0x4e]
test eax, eax
je 0x423740
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x423554
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x423569
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.0058148b
mov ecx, dword [esp + 0x3c]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423740
mov byte [esp + 0x14], 1
jmp 0x423740
mov ecx, 9
mov edi, str.largeHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x423637
lea eax, [esp + 0x51]
test eax, eax
je 0x423740
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x4235e0
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x4235f5
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.0058148b
mov ecx, dword [esp + 0x40]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423740
mov byte [esp + 0x17], 1
jmp 0x423740
mov ecx, 3
mov edi, str.small
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x4236c1
lea eax, [esp + 0x4e]
test eax, eax
je 0x423740
lea ecx, [esp + 0x4e]
push 0xd
push ecx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x42366d
mov byte [eax], bl
lea edx, [esp + 0x4e]
push 0xa
push edx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x423682
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.0058148b
mov ecx, dword [esp + 0x44]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423740
mov byte [esp + 0x16], 1
jmp 0x423740
mov ecx, 9
mov edi, str.smallHot
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x423740
lea eax, [esp + 0x51]
test eax, eax
je 0x423740
lea ecx, [esp + 0x51]
push 0xd
push ecx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x4236f2
mov byte [eax], bl
lea edx, [esp + 0x51]
push 0xa
push edx
call fcn.0056c5f0
add esp, 8
cmp eax, ebx
je 0x423707
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.0058148b
mov ecx, dword [esp + 0x48]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423740
mov byte [esp + 0x13], 1
inc ebp
cmp ebp, 7
jl 0x423497
mov esi, dword [esp + 0x3c]
cmp byte [esp + 0x15], bl
je 0x4237d0
cmp byte [esp + 0x14], bl
je 0x4237d0
cmp byte [esp + 0x17], bl
je 0x4237d0
cmp byte [esp + 0x16], bl
je 0x4237d0
cmp byte [esp + 0x13], bl
je 0x4237d0
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.00423d50
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.005887f9
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 4]
call fcn.005887f9
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.005887f9
lea eax, [esp + 0x30]
lea ecx, [esi + 0xc]
push eax
call fcn.005887f9
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x10]
call fcn.005887f9
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x5d4], 6
call fcn.005886c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x5d4], 5
call fcn.005886c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d4], 4
call fcn.005886c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x5d4], 3
call fcn.005886c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x5d4], 1
call fcn.005886c0
mov edi, dword [esp + 0x40]
push esi
call fcn.0056d8d8
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 0x42385a
call fcn.005886c0
jmp 0x4233b1
call fcn.005886c0
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 0x4238b7
mov eax, dword [edx + 0xc]
cmp eax, ebx
je 0x4238b7
xor edi, edi
cmp eax, ebx
jle 0x4238b7
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.0056dad2
add esp, 8
test eax, eax
je 0x4238b3
mov eax, dword [ebx + 0xc]
inc edi
add esi, 0x14
cmp edi, eax
jl 0x423888
jmp 0x4238b7
inc edi
mov dword [ebx + 0x20], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 0x5cc]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c8
ret