Function at 0x490170
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f428b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x66d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp + 0x20]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00571e5f
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005744b2
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x2dc], ebx
cmp ebx, 0xffffffff
jne 0x490200
xor bl, bl
jmp 0x490433
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x2ac], ax
jne 0x490221
xor ecx, ecx
jmp 0x49023f
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490230
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
call fcn.00478000
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00574622
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2c], 8
jb 0x49027b
push dword [ebp - 0x40]
call fcn.00496180
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 0xf
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x88]
mov dword [ebp - 0x18], eax
cmovae edx, dword [ebp - 0x88]
mov byte [ebp - 0x28], al
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp byte [edx], al
jne 0x4902b5
xor ecx, ecx
jmp 0x4902c9
mov ecx, edx
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4902c0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00460dd0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
mov edi, dword [esi + 4]
cmp eax, edi
jae 0x49037a
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
cmp eax, ecx
ja 0x49037a
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [esi + 8]
jne 0x490312
push ecx
mov ecx, esi
call fcn.00477c70
mov eax, dword [esi]
lea ecx, [ebx + ebx*2]
mov ebx, dword [esi + 4]
lea edi, [eax + ecx*8]
test ebx, ebx
je 0x490372
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [edi + 0x14], 0x10
jae 0x49034b
mov eax, dword [edi + 0x10]
inc eax
je 0x490355
push eax
push edi
push ebx
call fcn.00553630
add esp, 0xc
jmp 0x490355
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ebx, dword [ebp - 0x2dc]
jmp 0x4903e5
cmp edi, dword [esi + 8]
jne 0x490387
push ecx
mov ecx, esi
call fcn.00477c70
mov edi, dword [esi + 4]
test edi, edi
je 0x4903e5
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [ebp - 0x14], 0x10
jae 0x4903bb
mov eax, dword [ebp - 0x18]
inc eax
je 0x4903c7
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00553630
add esp, 0xc
jmp 0x4903c7
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
add dword [esi + 4], 0x18
cmp dword [ebp - 0x14], 0x10
jb 0x4903fa
push dword [ebp - 0x28]
call fcn.00496180
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [ebp - 4], 3
mov edi, eax
cmp dword [ebp - 0x74], 0x10
jb 0x490422
push dword [ebp - 0x88]
call fcn.00496180
add esp, 4
test edi, edi
jne 0x490200
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp dword [ebp - 0x44], 0x10
jb 0x490444
push dword [ebp - 0x58]
call fcn.00496180
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x490467
push dword [ebp - 0x70]
call fcn.00496180
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x49048a
push dword [ebp + 8]
call fcn.00496180
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x4904ad
push dword [ebp + 0x20]
call fcn.00496180
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055337c
mov esp, ebp
pop ebp
ret