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

Disassembly:
push 0xffffffffffffffff
push 0x4e722c
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.00407190
mov cl, byte [esp + 0xf]
mov esi, dword [0x518b48]
mov byte [esp + 0x24], cl
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x190], ebx
call fcn.00407190
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.00406db0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x18c], 1
cmp eax, ebx
jne 0x4a63ad
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 0x4a658d
mov al, byte [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x198]
test al, 0x10
jne 0x4a649c
lea eax, [esp + 0x74]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0040a870
add esp, 0xc
mov ecx, dword [0x4ea898]
mov byte [esp + 0x190], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00406bb0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00407190
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4a6438
mov eax, 0x4ea894
push eax
call fcn.00417d90
add esp, 4
test eax, eax
je 0x4a649c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a646e
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4a6460
mov eax, 0x4ea894
push ebp
push eax
call fcn.004b0b80
add esp, 8
test eax, eax
jge 0x4a649c
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jne 0x4a647b
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 0x4a6583
test byte [esp + 0x48], 0x10
jne 0x4a6573
lea ecx, [esp + 0x74]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0040a870
add esp, 0xc
mov ecx, dword [0x4ea898]
mov byte [esp + 0x190], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00406bb0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00407190
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a650f
mov eax, 0x4ea894
push eax
call fcn.00417d90
add esp, 4
test eax, eax
je 0x4a6573
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a6545
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a6537
mov eax, 0x4ea894
push ebp
push eax
call fcn.004b0b80
add esp, 8
test eax, eax
jge 0x4a6573
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4a6552
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 0x4a64b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
pop ebp
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4a65b1
mov al, byte [ecx - 1]
test al, al
je 0x4a65a7
cmp al, 0xff
je 0x4a65a7
dec al
mov byte [ecx - 1], al
jmp 0x4a65b1
dec ecx
push ecx
call fcn.004d46f7
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 0x4a65e4
mov al, byte [ecx - 1]
test al, al
je 0x4a65da
cmp al, 0xff
je 0x4a65da
dec al
mov byte [ecx - 1], al
jmp 0x4a65e4
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x178]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x184
ret 4