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

Disassembly:
push 0xffffffffffffffff
push 0x4f18d6
mov eax, dword fs:[0]
push eax
sub esp, 0xe9c
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xe98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xeb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xec4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xec0]
lea edx, [esp + 0x2ac]
sub edx, eax
xor ebp, ebp
jmp 0x4790a0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x4790a0
lea edi, [esp + 0x2ac]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4790c0
mov ecx, dword [0x4fea60]
mov dword [edi], ecx
xor eax, eax
jmp 0x4790e0
movzx ecx, word [esp + eax + 0x2ac]
mov word [esp + eax + 0x6ac], cx
add eax, 2
cmp cx, bp
jne 0x4790e0
lea eax, [esp + 0x6ac]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x479102
mov edx, dword [0x4fea64]
mov ecx, dword [0x4fea68]
mov dword [eax], edx
lea edx, [esp + 0x5c]
mov dword [eax + 4], ecx
push edx
lea eax, [esp + 0x6b0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
mov ebx, 7
test byte [esp + 0x5c], 0x10
je 0x479246
mov ecx, 0x509764
lea eax, [esp + 0x88]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x479178
cmp dx, bp
je 0x479174
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x479178
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x479152
xor eax, eax
jmp 0x47917d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x47934a
mov ecx, 0x50ad0c
lea eax, [esp + 0x88]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4791b7
cmp dx, bp
je 0x4791b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4791b7
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x479191
xor eax, eax
jmp 0x4791bc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x47934a
xor eax, eax
jmp 0x4791d0
movzx ecx, word [esp + eax + 0x2ac]
mov word [esp + eax + 0xaac], cx
add eax, 2
cmp cx, bp
jne 0x4791d0
lea eax, [esp + 0x88]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4791f1
lea edi, [esp + 0xaac]
sub eax, edx
add edi, 0xfffffffe
jmp 0x479210
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x479210
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0xab0]
push edx
call fcn.00479040
add esp, 8
jmp 0x47934a
xor eax, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], ax
mov dword [esp + 0xeb8], ebp
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov word [esp + 0x20], ax
lea eax, [esp + 0x2ac]
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x479283
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2b0]
push ecx
lea esi, [esp + 0x24]
call fcn.00401760
lea eax, [esp + 0x88]
mov byte [esp + 0xeb8], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4792b6
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x24]
call fcn.004088a0
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
call fcn.00401850
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
call fcn.00479e00
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x47930e
mov edx, dword [esp + 0x20]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov dword [esp + 0xeb8], 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], ax
cmp dword [esp + 0x50], esi
jb 0x47933b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], dx
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47913b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xeb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe98]
xor ecx, esp
call fcn.004c8f08
add esp, 0xea8
ret