Function at 0x4c6c90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4588
call fcn.00565660
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 [0x598a38], ebp
mov dword [0x598a3c], ebp
mov dword [0x598a30], ebp
mov dword [0x598a34], ebp
mov dword [0x589a8c], 0xffffffff
call dword [sym.imp.USER32.dll_GetFocus]
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [0x598a40], 1
call fcn.004c64d0
lea edx, [esp + 0x1a8]
mov ecx, ebx
call fcn.004c6190
lea eax, [esp + 0x1a8]
push eax
push str._s.log
push 0x59b078
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
push 0x59b078
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 0x4c6e31
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x68], 0x10
je 0x4c6d78
lea edx, [esp + 0x68]
push edx
jmp 0x4c6e20
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x94]
mov byte [eax + 0x59b078], cl
inc eax
test cl, cl
jne 0x4c6d80
cmp dword [0x598918], 6
jne 0x4c6dce
push 0x59b078
lea eax, [esp + 0x1ac]
push eax
push 0x574904
push 0x58f8d0
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x54]
push ecx
push 0x58f8d0
call fcn.00572efe
add esp, 0x18
test eax, eax
je 0x4c6dd2
mov dword [esp + 0x60], ebp
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
push edx
mov edx, 0x59b078
call fcn.004c2560
cmp eax, ebp
je 0x4c6e1b
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 [0x598a30]
cdq
add ecx, eax
mov eax, dword [0x598a34]
adc eax, edx
mov dword [0x598a30], ecx
mov dword [0x598a34], eax
lea ecx, [esp + 0x68]
push ecx
push esi
call edi
test eax, eax
jne 0x4c6d67
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp esi, 0xffffffff
je 0x4c6e3d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ebp
mov edx, 5
call fcn.00517550
push 0x59b078
push 0x3e7
push 0xd
push 0x66
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebp
call edi
mov al, byte [0x59b078]
test al, al
je 0x4c6e95
push 0x59b078
call fcn.00572bde
push 0x57568c
push 0x59b078
call fcn.00564fb0
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 0x4c713e
jmp 0x4c6eb0
mov esi, dword [esp + 0x20]
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x4c71d6
cmp eax, 1
jne 0x4c6ed5
mov edx, dword [esi]
push eax
push ebp
mov ecx, 0x59b078
call fcn.00535d60
jmp 0x4c6ee1
mov ecx, dword [esi]
mov edx, 0x59b078
call fcn.0041d580
test eax, eax
je 0x4c6ef2
mov dword [esp + 0x18], 1
jmp 0x4c70cf
mov edx, dword [esi]
push edx
lea eax, [esp + 0x1ac]
push eax
push 0x574904
push 0x58f8d0
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x40
push 0x57553c
push 0x58f8d0
call fcn.00563d6a
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x4c70c7
push 0x4000
push 0
push 0
push ebp
call fcn.00564ab1
push ebp
push 0x4000
mov edi, 1
lea ecx, [esp + 0x5a8]
push edi
push ecx
call fcn.0056493a
mov esi, eax
add esp, 0x20
test esi, esi
jle 0x4c70ba
lea edx, [esp + 0x590]
push edx
mov byte [esp + esi + 0x594], 0
call fcn.00572bde
mov ecx, dword [0x598a3c]
mov eax, esi
mov esi, dword [0x598a38]
cdq
add esp, 4
add esi, eax
adc ecx, edx
mov dword [0x598a38], esi
mov dword [0x598a3c], ecx
test byte [ebp + 0xc], 0x20
jne 0x4c70ba
cmp dword [esp + 0x1c], edi
jne 0x4c6fbd
push edi
push 0
lea edx, [esp + 0x598]
mov ecx, 0x59b078
call fcn.00535d60
jmp 0x4c6fd2
lea eax, [esp + 0x590]
push 0x59b078
push eax
call fcn.00563db0
add esp, 8
test eax, eax
je 0x4c6fda
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.004c6230
test byte [ebp + 0xc], 0x10
jne 0x4c70ba
push edi
push 0xffffffffffffffce
push ebp
call fcn.00564a23
add esp, 0xc
test eax, eax
jne 0x4c70ba
push ebp
call fcn.005654bf
add esp, 4
test eax, eax
jle 0x4c70ba
mov esi, dword [0x598a38]
mov edx, dword [0x598a3c]
push 0
push 0
push 0
add esi, 0xffffffce
push 0
lea ecx, [esp + 0x38]
adc edx, 0xffffffff
push ecx
mov dword [0x598a38], esi
mov dword [0x598a3c], edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4c708b
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x4c708b
test eax, eax
je 0x4c708b
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
call fcn.004d4d80
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 0x4c7045
cmp dword [0x598a40], 2
je 0x4c70ba
push ebp
push 0x4000
mov edi, 1
lea ecx, [esp + 0x598]
push edi
push ecx
call fcn.0056493a
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x4c6f60
push ebp
call fcn.00563cbd
mov esi, dword [esp + 0x24]
add esp, 4
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ebp, ebp
cmp dword [0x598a40], 2
je 0x4c713e
cmp dword [esp + 0x18], ebp
je 0x4c712f
fild dword [esi + 0xc]
push ebp
push ebp
push 1
sub esp, 8
mov edx, 1
fstp qword [esp]
mov ecx, 0x58f4e8
call fcn.004ee9d0
mov edx, dword [esi]
push 0x58f4e8
push edx
push 0x57765c
push 0x58f8d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x58f8d0
push ebp
push 0x180
push 0x67
push ebx
call edi
cmp eax, 0xffffffff
je 0x4c713e
cmp eax, 0xfffffffe
je 0x4c713e
mov eax, dword [esi + 0x40]
cmp eax, ebp
mov dword [esp + 0x20], eax
jne 0x4c6ea9
lea ecx, [esp + 0x14]
call fcn.004c29d0
push 1
push 0x574b10
mov edx, 0x67
mov ecx, ebx
call fcn.00537a70
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 [0x598a38], ebp
mov dword [0x598a3c], ebp
mov dword [0x598a30], ebp
mov dword [0x598a34], ebp
mov dword [0x589a8c], 0xffffffff
mov dword [0x598a40], ebp
call fcn.004c64d0
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 [0x598a40], 2
je 0x4c713e
jmp 0x4c70de