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

Disassembly:
push 0xffffffffffffffff
push 0x46c49c
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.00404a40
mov cl, byte [esp + 0xf]
mov esi, dword [0x48e53c]
mov byte [esp + 0x24], cl
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x190], ebx
call fcn.00404a40
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.004046d0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x18c], 1
cmp eax, ebx
jne 0x43171d
mov eax, 0x46f7ac
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 0x4318fd
mov al, byte [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x198]
test al, 0x10
jne 0x43180c
lea eax, [esp + 0x74]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00407aa0
add esp, 0xc
mov ecx, dword [0x46f7b0]
mov byte [esp + 0x190], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.004044d0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00404a40
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4317a8
mov eax, 0x46f7ac
push eax
call fcn.0040ea20
add esp, 4
test eax, eax
je 0x43180c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4317de
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4317d0
mov eax, 0x46f7ac
push ebp
push eax
call fcn.00445c80
add esp, 8
test eax, eax
jge 0x43180c
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jne 0x4317eb
mov edi, 0x46f7ac
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 0x4318f3
test byte [esp + 0x48], 0x10
jne 0x4318e3
lea ecx, [esp + 0x74]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00407aa0
add esp, 0xc
mov ecx, dword [0x46f7b0]
mov byte [esp + 0x190], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.004044d0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x194], 1
call fcn.00404a40
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x43187f
mov eax, 0x46f7ac
push eax
call fcn.0040ea20
add esp, 4
test eax, eax
je 0x4318e3
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4318b5
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4318a7
mov eax, 0x46f7ac
push ebp
push eax
call fcn.00445c80
add esp, 8
test eax, eax
jge 0x4318e3
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4318c2
mov edi, 0x46f7ac
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 0x431822
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
pop ebp
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x431921
mov al, byte [ecx - 1]
test al, al
je 0x431917
cmp al, 0xff
je 0x431917
dec al
mov byte [ecx - 1], al
jmp 0x431921
dec ecx
push ecx
call fcn.0045da32
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 0x431954
mov al, byte [ecx - 1]
test al, al
je 0x43194a
cmp al, 0xff
je 0x43194a
dec al
mov byte [ecx - 1], al
jmp 0x431954
dec ecx
push ecx
call fcn.0045da32
add esp, 4
mov ecx, dword [esp + 0x178]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x184
ret 4