Function at 0x493178
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x493181
add esp, 0xfffffcdc
mov eax, dword [ebp - 4]
mov eax, 0x5963be
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
call fcn.004cfcb8
xor esi, esi
xor edi, edi
mov word [ebp - 0x14], 8
test byte [0x514ff0], 0x40
je 0x4931cd
mov eax, dword [ebp + 8]
push eax
push 0x5dae33
push 0x514ff4
call fcn.00451068
add esp, 0xc
mov byte [ebx], 0
mov byte [0x62464a], 0
mov byte [0x5963a8], 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 0x49321c
movsx edx, al
cmp edx, 0x2c
jne 0x493219
movsx ecx, byte [esi + 1]
push ecx
call fcn.004d4d28
pop ecx
mov edx, dword [ebp - 0x28]
mov byte [edx], al
inc edi
inc dword [ebp - 0x28]
inc esi
jmp 0x4931f7
mov byte [ebp + edi - 0x68], 0
movsx eax, byte [0x519081]
push eax
push ebx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045d1a8
add esp, 0xc
test eax, eax
jne 0x49329a
push 0x5dae47
push ebx
call fcn.004cd308
add esp, 8
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.004cd308
add esp, 8
push 0x5dae4a
push ebx
call fcn.004cd308
add esp, 8
mov byte [0x5963a8], 0
test byte [0x514ff0], 0x40
je 0x493289
mov edx, dword [ebp + 8]
push edx
push 0x5dae4c
push 0x514ff4
call fcn.00451068
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x49386a
lea edi, [ebp - 0x68]
mov al, byte [edi]
test al, al
je 0x4937e2
lea edx, [ebp - 0x4325]
push edx
movsx ecx, byte [edi]
push ecx
call fcn.004d4d28
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d3674
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 0x493323
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cd3e4
pop ecx
test eax, eax
je 0x493323
lea eax, [ebp - 0x4328]
push eax
call fcn.004cd3e4
pop ecx
movsx edx, byte [ebp + eax - 0x4329]
cmp edx, 0x5c
je 0x493323
push 0x5dae65
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cd308
add esp, 8
lea eax, [ebp - 0x4328]
lea edx, [ebp - 0x21a8]
push eax
push 0x5dae67
push edx
call fcn.004d1ac0
add esp, 0xc
lea ecx, [ebp - 0x21a8]
push ecx
push 0x5dae82
lea eax, [ebp - 0x41a8]
push eax
push 0x5dae7d
push 0x5dae75
call fcn.0040c930
mov dl, byte [ebp - 0x41a8]
test dl, dl
je 0x4933a4
mov cl, byte [ebx]
test cl, cl
je 0x49337e
push 0x5dae83
push ebx
call fcn.004cd308
add esp, 8
lea eax, [ebp - 0x41a8]
push eax
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x4328]
push ecx
push ebx
call fcn.004cd308
add esp, 8
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d4d28
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d3674
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 0x493420
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd3e4
pop ecx
test eax, eax
je 0x493420
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cd3e4
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x493420
push 0x5dae85
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5dae87
push eax
call fcn.004d1ac0
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 0x4934ac
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5dae92
push ecx
call fcn.004d1ac0
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x49348b
push 0x5dae97
push ebx
call fcn.004cd308
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x493455
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d4d28
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d3674
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 0x49352e
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd3e4
pop ecx
test eax, eax
je 0x49352e
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cd3e4
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x49352e
push 0x5dae99
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5dae9b
push eax
call fcn.004d1ac0
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 0x4935ba
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5daea6
push ecx
call fcn.004d1ac0
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x493599
push 0x5daeab
push ebx
call fcn.004cd308
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x493563
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d4d28
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d3674
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 0x49363c
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd3e4
pop ecx
test eax, eax
je 0x49363c
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cd3e4
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x49363c
push 0x5daead
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5daeaf
push eax
call fcn.004d1ac0
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 0x4936c8
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5daeba
push ecx
call fcn.004d1ac0
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x4936a7
push 0x5daebf
push ebx
call fcn.004cd308
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x493671
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004d4d28
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d3674
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 0x49374a
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd3e4
pop ecx
test eax, eax
je 0x49374a
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004cd3e4
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x49374a
push 0x5daec1
lea edx, [ebp - 0x4328]
push edx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5daec3
push eax
call fcn.004d1ac0
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 0x4937d6
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5daece
push ecx
call fcn.004d1ac0
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x4937b5
push 0x5daed3
push ebx
call fcn.004cd308
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004cd308
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x49377f
push esi
call sub.KERNEL32.dll_FindClose
inc edi
jmp 0x49329d
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
mov esi, 0x62464a
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 [0x5963a9], 1
mov byte [0x5963a8], 0
test byte [0x514ff0], 0x40
je 0x493834
push 0x62464a
push 0x5daed5
push 0x514ff4
call fcn.00451068
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x49385b
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