Function at 0x459550
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeb16
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x206
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x422]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x6b0], edi
mov word [ebp - 0x424], ax
call fcn.004be120
add esp, 0xc
push edi
lea edx, [ebp - 0x424]
push 0x50b23c
push edx
call fcn.004b7011
add esp, 0xc
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x6b4], edi
cmp edi, 0xffffffff
je 0x459812
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push esi
push eax
mov word [ebp - 0x21c], dx
call fcn.004be120
add esp, 0xc
lea ecx, [ebp - 0x6ac]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45980b
mov ecx, 0x50b678
lea eax, [ebp - 0x680]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x459648
cmp dx, si
je 0x459644
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x459648
add eax, 4
add ecx, 4
cmp dx, si
jne 0x459622
xor eax, eax
jmp 0x45964d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x4597ef
mov ecx, 0x50b248
lea eax, [ebp - 0x680]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x459686
cmp dx, si
je 0x459682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x459686
add eax, 4
add ecx, 4
cmp dx, si
jne 0x459660
xor eax, eax
jmp 0x45968b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x4597ef
push 0x104
lea edx, [ebp - 0x21c]
push esi
push edx
call fcn.004be120
mov ecx, dword [ebp - 0x6b0]
add esp, 0xc
lea eax, [ebp - 0x680]
push eax
push ecx
lea edx, [ebp - 0x21c]
push 0x50b250
push edx
call fcn.004b7011
add esp, 0x10
test byte [ebp - 0x6ac], 0x10
lea eax, [ebp - 0x21c]
je 0x459762
push eax
mov ecx, ebx
call fcn.00459550
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x44c], esi
mov word [ebp - 0x45c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x459707
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x45c]
call fcn.004073c0
lea edi, [ebx + 0x5c]
lea ecx, [ebp - 0x45c]
mov dword [ebp - 4], esi
call fcn.0040c0d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x448], 8
jb 0x4597ef
mov eax, dword [ebp - 0x45c]
push eax
call fcn.004b6106
add esp, 4
jmp 0x4597ef
xor ecx, ecx
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], esi
mov word [ebp - 0x440], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x459780
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x440]
call fcn.004073c0
lea edi, [ebx + 0x6c]
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 1
call fcn.0040c0d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x42c], 8
jb 0x4597d6
mov eax, dword [ebp - 0x440]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], esi
mov word [ebp - 0x440], cx
mov edi, dword [ebp - 0x6b4]
lea edx, [ebp - 0x6ac]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x459617
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret 4