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

Disassembly:
push 0xffffffffffffffff
push 0x4e602c
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.00406ab0
mov cl, byte [esp + 0xf]
mov esi, dword [0x517568]
mov byte [esp + 0x24], cl
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x190], ebx
call fcn.00406ab0
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.00406740
mov eax, dword [esp + 0x28]
mov byte [esp + 0x18c], 1
cmp eax, ebx
jne 0x4a52dd
mov eax, 0x4e9894
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 0x4a54bd
mov al, byte [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x198]
test al, 0x10
jne 0x4a53cc
lea eax, [esp + 0x74]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00409ef0
add esp, 0xc
mov ecx, dword [0x4e9898]
mov byte [esp + 0x190], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00406540
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00406ab0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4a5368
mov eax, 0x4e9894
push eax
call fcn.00418a10
add esp, 4
test eax, eax
je 0x4a53cc
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a539e
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4a5390
mov eax, 0x4e9894
push ebp
push eax
call fcn.004af770
add esp, 8
test eax, eax
jge 0x4a53cc
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jne 0x4a53ab
mov edi, 0x4e9894
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 0x4a54b3
test byte [esp + 0x48], 0x10
jne 0x4a54a3
lea ecx, [esp + 0x74]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00409ef0
add esp, 0xc
mov ecx, dword [0x4e9898]
mov byte [esp + 0x190], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00406540
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00406ab0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a543f
mov eax, 0x4e9894
push eax
call fcn.00418a10
add esp, 4
test eax, eax
je 0x4a54a3
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a5475
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a5467
mov eax, 0x4e9894
push ebp
push eax
call fcn.004af770
add esp, 8
test eax, eax
jge 0x4a54a3
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4a5482
mov edi, 0x4e9894
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 0x4a53e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
pop ebp
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4a54e1
mov al, byte [ecx - 1]
test al, al
je 0x4a54d7
cmp al, 0xff
je 0x4a54d7
dec al
mov byte [ecx - 1], al
jmp 0x4a54e1
dec ecx
push ecx
call fcn.004d35e7
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 0x4a5514
mov al, byte [ecx - 1]
test al, al
je 0x4a550a
cmp al, 0xff
je 0x4a550a
dec al
mov byte [ecx - 1], al
jmp 0x4a5514
dec ecx
push ecx
call fcn.004d35e7
add esp, 4
mov ecx, dword [esp + 0x178]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x184
ret 4