Function at 0x4a0456
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
or esi, 0xffffffff
push 0
push 0
push 0x14b
push 0x67
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
push 0x55219c
push 0x180
push 0xd
push 0x163
push dword [0x533a2c]
call sub.USER32.dll_SendDlgItemMessageA
cmp byte [0x55219c], 0
jne 0x4a04c6
push esi
mov esi, 0x55219c
mov edi, 0x55509c
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x55219c
push 0x532423
push 0x5584e6
call sub.USER32.dll_wsprintfA
add esp, 0xc
push str.Main_folder
push 0
push 0x143
push 0x6c
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
xor edi, edi
cmp dword [0x532a54], 0
je 0x4a0503
mov edi, 1
test edi, edi
jne 0x4a0524
push 0x37
lea eax, [ebp - 0x110]
push eax
push 0x5584e6
call fcn.0051bae0
add esp, 0xc
mov ebx, eax
jmp 0x4a066a
lea eax, [ebp - 0x250]
push eax
push 0x5584e6
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a0546
mov ebx, 1
jmp 0x4a066a
xor ebx, ebx
jmp 0x4a066a
test edi, edi
jne 0x4a05b0
test byte [ebp - 0x108], 0x10
je 0x4a0563
cmp byte [ebp - 0x100], 0x2e
jne 0x4a0577
lea eax, [ebp - 0x110]
push eax
call fcn.0051bba0
pop ecx
mov ebx, eax
jmp 0x4a066a
push esi
push edi
mov esi, 0x5584e6
lea edi, [ebp - 0x100]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x5584e6
call fcn.005207ec
pop ecx
jmp 0x4a060d
test byte [ebp - 0x250], 0x10
je 0x4a05c2
cmp byte [ebp - 0x224], 0x2e
jne 0x4a05e1
lea eax, [ebp - 0x250]
push eax
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4a066a
mov ebx, 1
jmp 0x4a066a
push esi
push edi
mov esi, 0x5584e6
lea edi, [ebp - 0x224]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x5584e6
push 0
push 0x158
push 0x6c
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
inc eax
jne 0x4a063f
push 0x5584e6
push 0
push 0x143
push 0x6c
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
inc eax
je 0x4a0672
test edi, edi
jne 0x4a0654
lea eax, [ebp - 0x110]
push eax
call fcn.0051bba0
pop ecx
mov ebx, eax
jmp 0x4a066a
lea eax, [ebp - 0x250]
push eax
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4a066a
mov ebx, 1
test ebx, ebx
je 0x4a054d
cmp esi, 0xffffffff
je 0x4a067d
push esi
call sub.KERNEL32.dll_FindClose
push 0
push 0
push 0x146
push 0x6c
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
cmp eax, 0xffffffff
jne 0x4a0697
xor eax, eax
mov edx, dword [0x53226c]
test edx, edx
jl 0x4a06a5
cmp eax, edx
jge 0x4a06ad
xor ecx, ecx
mov dword [0x53226c], ecx
push 0
push dword [0x53226c]
push 0x14e
push 0x6c
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4