Function at 0x491b20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x40], eax
call fcn.0049f040
mov al, byte [esi]
test al, al
jne 0x491cd4
cmp dword [esi + 0x2b4], 0
je 0x491e68
test al, al
jne 0x491cd4
mov eax, dword [esi + 0x2b0]
mov edi, dword [esi + 0x2b4]
add edi, eax
cmp eax, edi
jbe 0x491b79
call fcn.004b3c6c
mov ebx, dword [esi + 0x298]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], edi
test ebx, ebx
jne 0x491ba5
call fcn.004b3c6c
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec edi
cmp edi, ecx
ja 0x491bb2
test ebx, ebx
je 0x491bab
mov ebx, dword [ebx]
jmp 0x491bad
mov eax, dword [ebx]
mov ecx, eax
jmp 0x491b92
xor ebx, ebx
cmp edi, dword [ebx + 0x18]
jae 0x491bb7
call fcn.004b3c6c
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x60], edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edx
lea edi, [esi + 0x258]
call fcn.0048b050
push eax
mov ecx, edi
call fcn.00489910
mov eax, dword [esi + 0x2b4]
xor ebx, ebx
cmp eax, ebx
je 0x491c15
mov ecx, dword [esi + 0x2b0]
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0x2ac]
cmp ecx, eax
ja 0x491bf8
sub eax, ecx
mov edx, dword [esi + 0x2a8]
mov ecx, dword [edx + eax*4]
call fcn.004896d0
add dword [esi + 0x2b4], 0xffffffff
jne 0x491c15
mov dword [esi + 0x2b0], ebx
push edi
lea ecx, [ebp - 0x3c]
call fcn.00489700
cmp dword [esi + 0x290], ebx
jne 0x491c80
push 1
xor eax, eax
push 0x4e311c
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.004020b0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00489ad0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00489910
lea ecx, [ebp - 0x88]
call fcn.004896d0
cmp dword [ebp - 0x44], 8
jb 0x491caa
mov eax, dword [ebp - 0x58]
push eax
call fcn.004b3716
add esp, 4
jmp 0x491caa
lea ecx, [esi + 0x27c]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00489ad0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00489910
lea ecx, [ebp - 0x88]
call fcn.004896d0
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x491cb6
lea eax, [ebp - 0x38]
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x3c]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.004896d0
jmp 0x491d00
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x491d00
mov ecx, dword [esi + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
xor edx, edx
cmp dword [esi + 0x254], 0xffffffff
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], dx
jne 0x491d4c
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [esi + 0x27c]
mov byte [esi], dl
mov dword [ebp - 0x44], 7
call fcn.00401fb0
cmp dword [ebp - 0x44], 8
jb 0x491b43
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004b3716
add esp, 4
jmp 0x491b43
lea edi, [esi + 0x30]
mov ebx, 7
mov eax, edi
mov dword [ebp - 0x44], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491d60
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.004020b0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00489700
cmp dword [ebp - 0x44], 8
jb 0x491d97
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004b3716
add esp, 4
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.004a0fb0
test al, al
je 0x491db3
lea ecx, [ebp - 0x20]
call fcn.004896d0
jmp 0x491b43
xor eax, eax
mov word [ebp - 0x58], ax
mov eax, edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 0
lea edx, [eax + 2]
jmp 0x491dd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491dd0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.004020b0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [esi + 0x258]
call fcn.00489ad0
push eax
lea ecx, [ebp - 0x20]
call fcn.00489910
lea ecx, [ebp - 0x88]
call fcn.004896d0
cmp dword [ebp - 0x44], 8
jb 0x491e25
mov eax, dword [ebp - 0x58]
push eax
call fcn.004b3716
add esp, 4
test byte [esi + 4], 0x10
je 0x491e52
cmp byte [esi + 0x274], 0
je 0x491e43
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 0x298]
call fcn.00491ac0
test byte [esi + 0x278], 2
je 0x491e5b
lea edx, [ebp - 0x20]
push edx
jmp 0x491e78
test byte [esi + 0x278], 1
jne 0x491e74
lea ecx, [ebp - 0x20]
call fcn.004896d0
jmp 0x491b43
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.004896b0
jmp 0x491e8a
lea eax, [ebp - 0x20]
push eax
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.00489700
lea ecx, [ebp - 0x20]
call fcn.004896d0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3721
mov esp, ebp
pop ebp
ret 4