Function at 0x477ad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5117a7
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edi
mov dword [esp + 0x18], edi
call fcn.00477980
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x477b36
mov edx, dword [edi + 0x24]
cmp eax, edx
je 0x477b36
mov ecx, eax
mov eax, dword [ecx + 0x12c]
cmp eax, edx
jne 0x477b28
jmp 0x477b38
xor ecx, ecx
mov esi, ecx
cmp ecx, ebx
je 0x477b63
mov edi, edi
mov ecx, dword [esi + 0x124]
cmp ecx, ebx
je 0x477b52
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea eax, [edi + 4]
push eax
mov edx, esi
call fcn.00476e30
mov esi, eax
cmp esi, ebx
jne 0x477b40
mov eax, dword [edi + 4]
cmp eax, dword [edi + 0x24]
lea ebp, [edi + 4]
je 0x477b76
push eax
mov ecx, ebp
call fcn.00477520
mov eax, dword [ebp + 0xc]
mov dword [ebp + 4], ebx
cmp eax, ebx
je 0x477b91
mov esi, dword [eax]
push eax
mov eax, dword [ebp + 0x1c]
call eax
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x477b80
mov ecx, dword [ebp + 0x20]
lea eax, [edi + 0x30]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp], ecx
cmp word [eax], bx
je 0x477f71
push eax
lea ecx, [esp + 0x2b8]
call fcn.004175e0
push 0x550ba4
push 0x549858
lea edx, [esp + 0x2bc]
mov dword [esp + 0x640], ebx
call fcn.00417ed0
push 0x24c
lea edx, [esp + 0x3ec]
push ebx
push edx
mov dword [esp + 0x3f0], ebx
call fcn.004f2770
add esp, 0x14
cmp byte [esp + 0x3d0], 0
lea eax, [esp + 0x2c0]
jne 0x477c08
mov eax, dword [esp + 0x2bc]
lea ecx, [esp + 0x3dc]
push ecx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x477e5c
mov ecx, 0x546720
lea eax, [esp + 0x408]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x477c59
cmp dx, bx
je 0x477c55
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x477c59
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x477c33
xor eax, eax
jmp 0x477c5e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x477e3a
mov ecx, 0x546724
lea eax, [esp + 0x408]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x477c98
cmp dx, bx
je 0x477c94
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x477c98
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x477c72
xor eax, eax
jmp 0x477c9d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x477e3a
test byte [esp + 0x3dc], 0x10
je 0x477e3a
lea eax, [esp + 0x408]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x477cc0
push 0xc
sub eax, edx
push str._RECYCLE.BIN
sar eax, 1
push eax
lea edx, [esp + 0x414]
push edx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x477e3a
lea ecx, [esp + 0x18c]
call fcn.004174b0
lea eax, [edi + 0x30]
lea edx, [esp + 0x18c]
mov byte [esp + 0x638], 1
call fcn.00417710
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x80]
call fcn.0041dc60
cmp byte [esp + 0x184], 0
lea eax, [esp + 0x74]
jne 0x477d43
mov eax, dword [esp + 0x70]
cmp word [eax + 4], 0x2e
jne 0x477d5d
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x190]
call fcn.0041f1b0
jmp 0x477d6e
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x190]
call fcn.0041e2f0
cmp byte [esp + 0x184], 0
mov ebp, vtable.t_str.0
mov dword [esp + 0x68], ebp
jne 0x477d96
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x74]
cmp eax, ecx
je 0x477d96
push eax
call fcn.004ed7b6
add esp, 4
push 0x65c4
mov byte [esp + 0x63c], 2
call fcn.004ee78a
add esp, 4
cmp eax, ebx
je 0x477dd6
cmp byte [esp + 0x2a8], 0
lea ecx, [esp + 0x198]
jne 0x477dc7
mov ecx, dword [esp + 0x194]
add ecx, 4
push ecx
mov esi, eax
call fcn.0047ab90
mov esi, eax
jmp 0x477dd8
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
test al, al
je 0x477e04
call fcn.00476800
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [edi]
push 1
push 1
push eax
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
jmp 0x477e0e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [esp + 0x2a8], 0
mov dword [esp + 0x18c], ebp
jne 0x477e3a
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x198]
cmp eax, ecx
je 0x477e3a
push eax
call fcn.004ed7b6
add esp, 4
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x3dc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x477c27
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, fcn.004ee443
mov esi, fcn.004ed7b6
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x38], fcn.004ed893
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], esi
lea eax, [edi + 4]
mov bl, 3
push eax
lea edi, [esp + 0x24]
mov byte [esp + 0x63c], bl
call fcn.0047a090
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
add edi, 4
push edi
call eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0xa
mov dword [esp + 0x5c], fcn.004ed893
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x63c], 4
call fcn.00479f90
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x44]
push eax
push edi
call edx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push edi
call edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x638], bl
call fcn.00476a00
lea ecx, [esp + 0x20]
mov byte [esp + 0x638], 0
call fcn.00430e10
cmp byte [esp + 0x3d0], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x477f71
mov eax, dword [esp + 0x2bc]
lea ecx, [esp + 0x2c0]
cmp eax, ecx
je 0x477f71
push eax
call fcn.004ed7b6
add esp, 4
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.004ecddb
add esp, 0x628
ret