Function at 0x4a61d0
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4e709c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov al, byte [esp + 3]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00407180
mov cl, byte [esp + 0xf]
mov esi, dword [0x518b28]
mov byte [esp + 0x24], cl
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x190], ebx
call fcn.00407180
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x2c]
call fcn.00406da0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x18c], 1
cmp eax, ebx
jne 0x4a624d
mov eax, 0x4ea894
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x44]
push edx
push str.ProData.dat
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x4a642d
mov al, byte [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x198]
test al, 0x10
jne 0x4a633c
lea eax, [esp + 0x74]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0040a840
add esp, 0xc
mov ecx, dword [0x4ea898]
mov byte [esp + 0x190], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00406ba0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00407180
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4a62d8
mov eax, 0x4ea894
push eax
call fcn.00417e40
add esp, 4
test eax, eax
je 0x4a633c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a630e
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4a6300
mov eax, 0x4ea894
push ebp
push eax
call fcn.004b0a20
add esp, 8
test eax, eax
jge 0x4a633c
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jne 0x4a631b
mov edi, 0x4ea894
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x48]
push eax
push esi
call ebx
test eax, eax
je 0x4a6423
test byte [esp + 0x48], 0x10
jne 0x4a6413
lea ecx, [esp + 0x74]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0040a840
add esp, 0xc
mov ecx, dword [0x4ea898]
mov byte [esp + 0x190], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00406ba0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00407180
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a63af
mov eax, 0x4ea894
push eax
call fcn.00417e40
add esp, 4
test eax, eax
je 0x4a6413
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a63e5
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a63d7
mov eax, 0x4ea894
push ebp
push eax
call fcn.004b0a20
add esp, 8
test eax, eax
jge 0x4a6413
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4a63f2
mov edi, 0x4ea894
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
push esi
call ebx
test eax, eax
jne 0x4a6352
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
pop ebp
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4a6451
mov al, byte [ecx - 1]
test al, al
je 0x4a6447
cmp al, 0xff
je 0x4a6447
dec al
mov byte [ecx - 1], al
jmp 0x4a6451
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
pop esi
cmp ecx, ebx
pop ebx
je 0x4a6484
mov al, byte [ecx - 1]
test al, al
je 0x4a647a
cmp al, 0xff
je 0x4a647a
dec al
mov byte [ecx - 1], al
jmp 0x4a6484
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x178]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x184
ret 4