Function at 0x493b4c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x493b55
add esp, 0xfffffcdc
mov eax, dword [ebp - 4]
mov eax, 0x597946
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
call fcn.004d08c0
xor esi, esi
xor edi, edi
mov word [ebp - 0x14], 8
test byte [0x516434], 0x40
je 0x493ba1
mov eax, dword [ebp + 8]
push eax
push 0x5dc3e6
push 0x516438
call fcn.00451598
add esp, 0xc
mov byte [ebx], 0
mov byte [0x625c66], 0
mov byte [0x597930], 1
mov edx, dword [ebp + 8]
mov cl, byte [edx]
mov byte [ebp + edi - 0x68], cl
inc edi
lea eax, [ebp + edi - 0x68]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
lea ecx, [edx + esi]
mov esi, ecx
mov al, byte [esi]
test al, al
je 0x493bf0
movsx edx, al
cmp edx, 0x2c
jne 0x493bed
movsx ecx, byte [esi + 1]
push ecx
call fcn.004d5930
pop ecx
mov edx, dword [ebp - 0x28]
mov byte [edx], al
inc edi
inc dword [ebp - 0x28]
inc esi
jmp 0x493bcb
mov byte [ebp + edi - 0x68], 0
movsx eax, byte [0x51a5d9]
push eax
push ebx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045d7d4
add esp, 0xc
test eax, eax
jne 0x493c6e
push 0x5dc3fa
push ebx
call fcn.004cdf10
add esp, 8
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.004cdf10
add esp, 8
push 0x5dc3fd
push ebx
call fcn.004cdf10
add esp, 8
mov byte [0x597930], 0
test byte [0x516434], 0x40
je 0x493c5d
mov edx, dword [ebp + 8]
push edx
push 0x5dc3ff
push 0x516438
call fcn.00451598
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x49423e
lea edi, [ebp - 0x68]
mov al, byte [edi]
test al, al
je 0x4941b6
lea edx, [ebp - 0x4325]
push edx
movsx ecx, byte [edi]
push ecx
call fcn.004d5930
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d427c
mov al, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], al
lea edx, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test edx, edx
je 0x493cf7
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cdfec
pop ecx
test eax, eax
je 0x493cf7
lea eax, [ebp - 0x4328]
push eax
call fcn.004cdfec
pop ecx
movsx edx, byte [ebp + eax - 0x4329]
cmp edx, 0x5c
je 0x493cf7
push 0x5dc418
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cdf10
add esp, 8
lea eax, [ebp - 0x4328]
lea edx, [ebp - 0x21a8]
push eax
push 0x5dc41a
push edx
call fcn.004d26c8
add esp, 0xc
lea ecx, [ebp - 0x21a8]
push ecx
push 0x5dc435
lea eax, [ebp - 0x41a8]
push eax
push 0x5dc430
push 0x5dc428
call fcn.0040c948
mov dl, byte [ebp - 0x41a8]
test dl, dl
je 0x493d78
mov cl, byte [ebx]
test cl, cl
je 0x493d52
push 0x5dc436
push ebx
call fcn.004cdf10
add esp, 8
lea eax, [ebp - 0x41a8]
push eax
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x4328]
push ecx
push ebx
call fcn.004cdf10
add esp, 8
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d5930
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d427c
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x493df4
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdfec
pop ecx
test eax, eax
je 0x493df4
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cdfec
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x493df4
push 0x5dc438
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5dc43a
push eax
call fcn.004d26c8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x493e80
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5dc445
push ecx
call fcn.004d26c8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x493e5f
push 0x5dc44a
push ebx
call fcn.004cdf10
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x493e29
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d5930
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d427c
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x493f02
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdfec
pop ecx
test eax, eax
je 0x493f02
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cdfec
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x493f02
push 0x5dc44c
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5dc44e
push eax
call fcn.004d26c8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x493f8e
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5dc459
push ecx
call fcn.004d26c8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x493f6d
push 0x5dc45e
push ebx
call fcn.004cdf10
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x493f37
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d5930
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d427c
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x494010
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdfec
pop ecx
test eax, eax
je 0x494010
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cdfec
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x494010
push 0x5dc460
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5dc462
push eax
call fcn.004d26c8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x49409c
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5dc46d
push ecx
call fcn.004d26c8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x49407b
push 0x5dc472
push ebx
call fcn.004cdf10
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x494045
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d5930
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d427c
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x49411e
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdfec
pop ecx
test eax, eax
je 0x49411e
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cdfec
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x49411e
push 0x5dc474
lea edx, [ebp - 0x4328]
push edx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5dc476
push eax
call fcn.004d26c8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4941aa
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5dc481
push ecx
call fcn.004d26c8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x494189
push 0x5dc486
push ebx
call fcn.004cdf10
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cdf10
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x494153
push esi
call sub.KERNEL32.dll_FindClose
inc edi
jmp 0x493c71
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
mov esi, 0x625c66
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [0x597931], 1
mov byte [0x597930], 0
test byte [0x516434], 0x40
je 0x494208
push 0x625c66
push 0x5dc488
push 0x516438
call fcn.00451598
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x49422f
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x4334]
mov esi, dword [ebp - 0x4330]
mov ebx, dword [ebp - 0x432c]
pop ebp
ret