Function at 0x4d3900
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x3c8
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0xf2
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x3cc], ecx
cmp dword [ebp + 0xc], 0
jne 0x4d3949
push dword [ebp + 8]
mov ecx, 0x573c58
call fcn.0040e1a0
cmp eax, 0
jne 0x4d3949
mov eax, 0x573c58
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 8
mov eax, dword [0x573c5c]
mov dword [ebp - 0x3b8], eax
jmp 0x4d399e
mov eax, dword [ebp - 0x3b8]
mov edx, dword [eax]
mov dword [0x573c5c], edx
cmp dword [ebp - 0x3b8], 0
je 0x4d3993
mov eax, dword [ebp - 0x3b8]
cmp dword [eax + 4], 0
je 0x4d3987
mov eax, dword [ebp - 0x3b8]
mov ecx, dword [eax + 4]
call fcn.0040c8f0
push dword [ebp - 0x3b8]
call fcn.00487090
pop ecx
mov eax, dword [0x573c5c]
mov dword [ebp - 0x3b8], eax
cmp dword [ebp - 0x3b8], 0
jne 0x4d3956
mov dword [0x573c60], 0
push dword [ebp + 8]
mov ecx, 0x573c58
call fcn.0040d2e0
mov dword [ebp - 0x3bc], 0
call fcn.0052fe80
cmp al, 0
je 0x4d3bb9
mov dword [ebp - 0x39c], 0
push str..
call fcn.0040e8d0
pop ecx
push eax
push str..
lea ecx, [ebp - 0x39c]
call fcn.0040cb20
cmp dword [ebp - 0x39c], 0
je 0x4d3a13
mov ebx, dword [ebp - 0x39c]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x39c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x258]
push eax
call fcn.0040dcb0
add esp, 0xc
cmp dword [ebp - 0x39c], 0
je 0x4d3a40
mov ecx, dword [ebp - 0x39c]
call fcn.0040c8f0
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x258]
call fcn.0040cf40
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x258]
call fcn.0040d2e0
cmp dword [ebp - 0x3a0], 0
je 0x4d3a78
mov ecx, dword [ebp - 0x3a0]
call fcn.0040c8f0
lea ecx, [ebp - 0x258]
call fcn.0040d280
mov dword [ebp - 0x3c0], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x3c0]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x3c4], eax
cmp dword [ebp - 0x3c4], 0xffffffff
je 0x4d3b9c
push 0x573c75
lea eax, [ebp - 0x254]
add eax, 0x2c
push eax
call fcn.004d3710
pop ecx
pop ecx
cmp eax, 0
je 0x4d3b74
push 0x573c77
lea eax, [ebp - 0x254]
add eax, 0x2c
push eax
call fcn.004d3710
pop ecx
pop ecx
cmp eax, 0
je 0x4d3b74
push 8
call fcn.00487050
pop ecx
cmp eax, 0
je 0x4d3b03
mov dword [eax + 4], 0
mov eax, eax
mov dword [ebp - 0x3b8], eax
lea eax, [ebp - 0x254]
add eax, 0x2c
push eax
call fcn.0053fd10
pop ecx
push eax
lea eax, [ebp - 0x254]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x3b8]
add ecx, 4
call fcn.0040cbb0
mov eax, dword [ebp - 0x3b8]
mov dword [eax], 0
cmp dword [ebp - 0x3bc], 0
je 0x4d3b57
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [ebp - 0x3b8]
mov dword [eax], ecx
jmp 0x4d3b62
mov eax, dword [ebp - 0x3b8]
mov dword [0x573c5c], eax
inc dword [0x573c60]
mov eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x3bc], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 0
jne 0x4d3aaf
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x258], 0
je 0x4d3e1c
mov ecx, dword [ebp - 0x258]
call fcn.0040c8f0
jmp 0x4d3e1c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x3a4], edx
cmp dword [ebp - 0x3a4], 0
je 0x4d3bd5
mov edx, dword [ebp - 0x3a4]
inc dword [edx]
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x3a8]
push eax
call fcn.00514300
pop ecx
pop ecx
mov dword [ebp - 0x3ac], 0
push str..
call fcn.0040e8d0
pop ecx
push eax
push str..
lea ecx, [ebp - 0x3ac]
call fcn.0040cb20
cmp dword [ebp - 0x3ac], 0
je 0x4d3c28
mov ebx, dword [ebp - 0x3ac]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x3b0]
push eax
call fcn.0040dcb0
add esp, 0xc
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0x3b0]
call fcn.0040d1c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3c8], eax
cmp dword [ebp - 0x3b0], 0
je 0x4d3c78
mov ecx, dword [ebp - 0x3b0]
call fcn.0040c8f0
cmp dword [ebp - 0x3ac], 0
je 0x4d3c8c
mov ecx, dword [ebp - 0x3ac]
call fcn.0040c8f0
cmp dword [ebp - 0x3a8], 0
je 0x4d3ca0
mov ecx, dword [ebp - 0x3a8]
call fcn.0040c8f0
cmp dword [ebp - 0x3a4], 0
je 0x4d3cb4
mov ecx, dword [ebp - 0x3a4]
call fcn.0040c8f0
cmp dword [ebp - 0x3c8], 0xffffffff
je 0x4d3e1c
push 0x573c75
lea eax, [ebp - 0x398]
add eax, 0x2c
push eax
call fcn.0040e980
pop ecx
pop ecx
cmp eax, 0
je 0x4d3df4
push 0x573c77
lea eax, [ebp - 0x398]
add eax, 0x2c
push eax
call fcn.0040e980
pop ecx
pop ecx
cmp eax, 0
je 0x4d3df4
push 8
call fcn.00487050
pop ecx
cmp eax, 0
je 0x4d3d15
mov dword [eax + 4], 0
mov eax, eax
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3b4], 0
lea eax, [ebp - 0x398]
add eax, 0x2c
lea eax, [ebp - 0x398]
add eax, 0x2c
push eax
call fcn.0040e8d0
pop ecx
push eax
lea eax, [ebp - 0x398]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x3b4]
call fcn.0040cb20
cmp dword [ebp - 0x3b4], 0
je 0x4d3d6c
mov ebx, dword [ebp - 0x3b4]
mov edx, dword [0x5494f8]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x3b4]
push eax
mov ecx, dword [ebp - 0x3b8]
add ecx, 4
call fcn.0040d2e0
cmp dword [ebp - 0x3b4], 0
je 0x4d3d95
mov ecx, dword [ebp - 0x3b4]
call fcn.0040c8f0
call fcn.00514260
mov ecx, dword [ebp - 0x3b8]
cmp dword [ecx + 4], 0
je 0x4d3db2
mov ecx, dword [ebp - 0x3b8]
mov edx, dword [ecx + 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x3b8]
mov dword [eax], 0
cmp dword [ebp - 0x3bc], 0
je 0x4d3dd7
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [ebp - 0x3b8]
mov dword [eax], ecx
jmp 0x4d3de2
mov eax, dword [ebp - 0x3b8]
mov dword [0x573c5c], eax
inc dword [0x573c60]
mov eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x3bc], eax
lea eax, [ebp - 0x398]
push eax
push dword [ebp - 0x3c8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 0
jne 0x4d3cc1
push dword [ebp - 0x3c8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x573c58
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 8