Function at 0x4d8940
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4588
call fcn.005925e0
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 [0x5ee848], ebp
mov dword [0x5ee84c], ebp
mov dword [0x5ee840], ebp
mov dword [0x5ee844], ebp
mov dword [0x5bfbfc], 0xffffffff
call dword [sym.imp.USER32.dll_GetFocus]
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [0x5ee850], 1
call fcn.004d8170
lea edx, [esp + 0x1a8]
mov ecx, ebx
call fcn.004d7e30
lea eax, [esp + 0x1a8]
push eax
push str._s.log
push 0x5f14f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
push 0x5f14f8
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 0x4d8ae1
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x68], 0x10
je 0x4d8a28
lea edx, [esp + 0x68]
push edx
jmp 0x4d8ad0
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x94]
mov byte [eax + 0x5f14f8], cl
inc eax
test cl, cl
jne 0x4d8a30
cmp dword [0x5ee728], 6
jne 0x4d8a7e
push 0x5f14f8
lea eax, [esp + 0x1ac]
push eax
push 0x5a49b4
push 0x5c5218
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x54]
push ecx
push 0x5c5218
call fcn.0059c8b7
add esp, 0x18
test eax, eax
je 0x4d8a82
mov dword [esp + 0x60], ebp
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
push edx
mov edx, 0x5f14f8
call fcn.004d38f0
cmp eax, ebp
je 0x4d8acb
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 [0x5ee840]
cdq
add ecx, eax
mov eax, dword [0x5ee844]
adc eax, edx
mov dword [0x5ee840], ecx
mov dword [0x5ee844], eax
lea ecx, [esp + 0x68]
push ecx
push esi
call edi
test eax, eax
jne 0x4d8a17
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp esi, 0xffffffff
je 0x4d8aed
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ebp
mov edx, 5
call fcn.00531820
push 0x5f14f8
push 0x3e7
push 0xd
push 0x66
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebp
call edi
mov al, byte [0x5f14f8]
test al, al
je 0x4d8b45
push 0x5f14f8
call fcn.005a2fa6
push 0x5a57f8
push 0x5f14f8
call fcn.005938e0
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 0x4d8dec
jmp 0x4d8b60
mov esi, dword [esp + 0x20]
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x4d8e7f
cmp eax, 1
jne 0x4d8b85
mov edx, dword [esi]
push eax
push ebp
mov ecx, 0x5f14f8
call fcn.00560640
jmp 0x4d8b91
mov ecx, dword [esi]
mov edx, 0x5f14f8
call fcn.004201d0
test eax, eax
je 0x4d8ba2
mov dword [esp + 0x18], 1
jmp 0x4d8d7b
cmp dword [0x5ee72c], ebp
jne 0x4d8d7b
mov edx, dword [esi]
push edx
lea eax, [esp + 0x1ac]
push eax
push 0x5a49b4
push 0x5c5218
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x40
push 0x5a5664
push 0x5c5218
call fcn.00591d20
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x4d8d73
push 0x4000
push 0
push 0
push ebp
call fcn.00592f65
push ebp
push 0x4000
mov edi, 1
lea ecx, [esp + 0x5a8]
push edi
push ecx
call fcn.00592b23
mov esi, eax
add esp, 0x20
test esi, esi
jle 0x4d8d66
lea esp, [esp]
lea edx, [esp + 0x590]
push edx
mov byte [esp + esi + 0x594], 0
call fcn.005a2fa6
mov ecx, dword [0x5ee84c]
mov eax, esi
mov esi, dword [0x5ee848]
cdq
add esp, 4
add esi, eax
adc ecx, edx
mov dword [0x5ee848], esi
mov dword [0x5ee84c], ecx
test byte [ebp + 0xc], 0x20
jne 0x4d8d66
cmp dword [esp + 0x1c], edi
jne 0x4d8c7d
push edi
push 0
lea edx, [esp + 0x598]
mov ecx, 0x5f14f8
call fcn.00560640
jmp 0x4d8c92
lea eax, [esp + 0x590]
push 0x5f14f8
push eax
call fcn.00591d90
add esp, 8
test eax, eax
je 0x4d8c9a
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.004d7ed0
test byte [ebp + 0xc], 0x10
jne 0x4d8d66
push edi
push 0xffffffffffffffce
push ebp
call fcn.00592bfe
add esp, 0xc
test eax, eax
jne 0x4d8d66
push ebp
call fcn.005940c6
add esp, 4
test eax, eax
jle 0x4d8d66
mov esi, dword [0x5ee848]
mov edx, dword [0x5ee84c]
push edi
push 0
push 0
add esi, 0xffffffce
push 0
lea ecx, [esp + 0x38]
adc edx, 0xffffffff
push ecx
mov dword [0x5ee848], esi
mov dword [0x5ee84c], edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4d8d37
cmp dword [esp + 0x2c], 0x12
je 0x4d8d37
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
call fcn.004e79f0
push 1
push 0
push 0
push 0
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4d8d04
cmp dword [0x5ee850], 2
je 0x4d8d66
push ebp
push 0x4000
mov edi, 1
lea eax, [esp + 0x598]
push edi
push eax
call fcn.00592b23
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x4d8c20
push ebp
call fcn.00591c49
mov esi, dword [esp + 0x24]
add esp, 4
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ebp, ebp
cmp dword [0x5ee850], 2
je 0x4d8dec
cmp dword [esp + 0x18], ebp
je 0x4d8ddd
fild dword [esi + 0xc]
push 1
push ebp
push ebp
push 1
sub esp, 8
mov edx, 1
fstp qword [esp]
mov ecx, 0x5c4e30
call fcn.00504de0
mov ecx, dword [esi]
push 0x5c4e30
push ecx
push 0x5a7d7c
push 0x5c5218
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x5c5218
push ebp
push 0x180
push 0x67
push ebx
call edi
cmp eax, 0xffffffff
je 0x4d8dec
cmp eax, 0xfffffffe
je 0x4d8dec
mov eax, dword [esi + 0x40]
cmp eax, ebp
mov dword [esp + 0x20], eax
jne 0x4d8b59
lea ecx, [esp + 0x14]
call fcn.004d3d60
push 1
mov edx, 0x67
mov ecx, ebx
call fcn.005625c0
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 [0x5ee848], ebp
mov dword [0x5ee84c], ebp
mov dword [0x5ee840], ebp
mov dword [0x5ee844], ebp
mov dword [0x5bfbfc], 0xffffffff
mov dword [0x5ee850], ebp
call fcn.004d8170
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x5ee850], 2
je 0x4d8dec
jmp 0x4d8d8a