Function at 0x4ccda0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4588
call fcn.00571390
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ebp, ebp
push ebp
push ebp
push 0x184
mov ebx, ecx
push 0x67
push ebx
call edi
push 0x67
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebp
push ebp
push 0xb
push 0x67
push ebx
call edi
mov dword [0x5a9f90], ebp
mov dword [0x5a9f94], ebp
mov dword [0x5a9f88], ebp
mov dword [0x5a9f8c], ebp
mov dword [0x59bb84], 0xffffffff
call dword [sym.imp.USER32.dll_GetFocus]
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [0x5a9f98], 1
call fcn.004cc5e0
lea edx, [esp + 0x1a8]
mov ecx, ebx
call fcn.004cc2a0
lea eax, [esp + 0x1a8]
push eax
push str._s.log
push 0x5ac5e0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
push 0x5ac5e0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
sete al
mov dword [esp + 0x14], ebp
cmp eax, ebp
jne 0x4ccf41
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x68], 0x10
je 0x4cce88
lea edx, [esp + 0x68]
push edx
jmp 0x4ccf30
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x94]
mov byte [eax + 0x5ac5e0], cl
inc eax
test cl, cl
jne 0x4cce90
cmp dword [0x5a9e6c], 6
jne 0x4ccede
push 0x5ac5e0
lea eax, [esp + 0x1ac]
push eax
push 0x583954
push 0x5a0bc8
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x54]
push ecx
push 0x5a0bc8
call fcn.005815d4
add esp, 0x18
test eax, eax
je 0x4ccee2
mov dword [esp + 0x60], ebp
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
push edx
mov edx, 0x5ac5e0
call fcn.004c7e10
cmp eax, ebp
je 0x4ccf2b
mov edx, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x44]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0xc]
mov ecx, dword [0x5a9f88]
cdq
add ecx, eax
mov eax, dword [0x5a9f8c]
adc eax, edx
mov dword [0x5a9f88], ecx
mov dword [0x5a9f8c], eax
lea ecx, [esp + 0x68]
push ecx
push esi
call edi
test eax, eax
jne 0x4cce77
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp esi, 0xffffffff
je 0x4ccf4d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ebp
mov edx, 5
call fcn.0051f5e0
push 0x5ac5e0
push 0x3e7
push 0xd
push 0x66
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebp
call edi
mov al, byte [0x5ac5e0]
test al, al
je 0x4ccfa5
push 0x5ac5e0
call fcn.00580fc6
push 0x5846fc
push 0x5ac5e0
call fcn.00571fd0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x20], esi
je 0x4cd25e
jmp 0x4ccfc0
mov esi, dword [esp + 0x20]
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x4cd2f6
cmp eax, 1
jne 0x4ccfe5
mov edx, dword [esi]
push eax
push ebp
mov ecx, 0x5ac5e0
call fcn.00542310
jmp 0x4ccff1
mov ecx, dword [esi]
mov edx, 0x5ac5e0
call fcn.0041e2a0
test eax, eax
je 0x4cd002
mov dword [esp + 0x18], 1
jmp 0x4cd1ef
cmp dword [0x5a9e70], ebp
jne 0x4cd1ef
mov edx, dword [esi]
push edx
lea eax, [esp + 0x1ac]
push eax
push 0x583954
push 0x5a0bc8
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x40
push 0x5845a4
push 0x5a0bc8
call fcn.00570ad0
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x4cd1e7
push 0x4000
push 0
push 0
push ebp
call fcn.005719f7
push ebp
push 0x4000
mov edi, 1
lea ecx, [esp + 0x5a8]
push edi
push ecx
call fcn.005718d3
mov esi, eax
add esp, 0x20
test esi, esi
jle 0x4cd1da
lea esp, [esp]
lea edx, [esp + 0x590]
push edx
mov byte [esp + esi + 0x594], 0
call fcn.00580fc6
mov ecx, dword [0x5a9f94]
mov eax, esi
mov esi, dword [0x5a9f90]
cdq
add esp, 4
add esi, eax
adc ecx, edx
mov dword [0x5a9f90], esi
mov dword [0x5a9f94], ecx
test byte [ebp + 0xc], 0x20
jne 0x4cd1da
cmp dword [esp + 0x1c], edi
jne 0x4cd0dd
push edi
push 0
lea edx, [esp + 0x598]
mov ecx, 0x5ac5e0
call fcn.00542310
jmp 0x4cd0f2
lea eax, [esp + 0x590]
push 0x5ac5e0
push eax
call fcn.00570b40
add esp, 8
test eax, eax
je 0x4cd0fa
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.004cc340
test byte [ebp + 0xc], 0x10
jne 0x4cd1da
push edi
push 0xffffffffffffffce
push ebp
call fcn.005719ae
add esp, 0xc
test eax, eax
jne 0x4cd1da
push ebp
call fcn.005727b6
add esp, 4
test eax, eax
jle 0x4cd1da
mov esi, dword [0x5a9f90]
mov edx, dword [0x5a9f94]
push 0
push 0
push 0
add esi, 0xffffffce
push 0
lea ecx, [esp + 0x38]
adc edx, 0xffffffff
push ecx
mov dword [0x5a9f90], esi
mov dword [0x5a9f94], edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4cd1ab
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x4cd1ab
test eax, eax
je 0x4cd1ab
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
call fcn.004db5b0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4cd165
cmp dword [0x5a9f98], 2
je 0x4cd1da
push ebp
push 0x4000
mov edi, 1
lea ecx, [esp + 0x598]
push edi
push ecx
call fcn.005718d3
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x4cd080
push ebp
call fcn.005709f9
mov esi, dword [esp + 0x24]
add esp, 4
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ebp, ebp
cmp dword [0x5a9f98], 2
je 0x4cd25e
cmp dword [esp + 0x18], ebp
je 0x4cd24f
fild dword [esi + 0xc]
push ebp
push ebp
push 1
sub esp, 8
mov edx, 1
fstp qword [esp]
mov ecx, 0x5a07e0
call fcn.004f5d50
mov edx, dword [esi]
push 0x5a07e0
push edx
push 0x5867bc
push 0x5a0bc8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x5a0bc8
push ebp
push 0x180
push 0x67
push ebx
call edi
cmp eax, 0xffffffff
je 0x4cd25e
cmp eax, 0xfffffffe
je 0x4cd25e
mov eax, dword [esi + 0x40]
cmp eax, ebp
mov dword [esp + 0x20], eax
jne 0x4ccfb9
lea ecx, [esp + 0x14]
call fcn.004c8280
push 1
push 0x583b74
mov edx, 0x67
mov ecx, ebx
call fcn.00544040
push ebp
push 1
push 0x185
push 0x67
push ebx
call edi
push ebp
push 1
push 0xb
push 0x67
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebp
push 0x67
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x67
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor edx, edx
mov ecx, ebx
mov dword [0x5a9f90], ebp
mov dword [0x5a9f94], ebp
mov dword [0x5a9f88], ebp
mov dword [0x5a9f8c], ebp
mov dword [0x59bb84], 0xffffffff
mov dword [0x5a9f98], ebp
call fcn.004cc5e0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x5a9f98], 2
je 0x4cd25e
jmp 0x4cd1fe