Function at 0x471390
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da49e
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x65eb68]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x300], edi
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0x30c], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, edx
mov dword [ebp - 0x28], 0
mov ebx, 1
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
mov word [ebp - 0x28], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471430
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004049aa
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 1
test esi, esi
je 0x471587
lea edi, [esi - 1]
cmp esi, edi
jbe 0x471a78
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
mov dword [ebp - 0x304], ecx
cmovae eax, edx
cmp word [eax + edi*2], 0x5c
je 0x471581
cmp esi, ecx
jae 0x4714a5
lea eax, [esi + 1]
cmp ecx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, edx
mov dword [eax + esi*2], 0x5c
jmp 0x471581
mov eax, SysReAllocString
sub eax, esi
cmp eax, 1
jb 0x471a82
lea edi, [esi + 1]
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4714ca
mov edi, SysReAllocString
jmp 0x4714e8
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4714e0
mov edi, SysReAllocString
jmp 0x4714e8
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404963
lea ecx, [esi + 1]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
lea ecx, [esi + esi]
mov esi, dword [ebp - 0x304]
mov dword [ebp - 0x2fc], eax
lea edi, [ecx + eax]
mov dword [ebp - 0x308], edi
push ecx
cmp esi, 8
jb 0x471565
mov edi, dword [ebp - 0x28]
push edi
push eax
call fcn.0059d630
mov eax, dword [ebp - 0x308]
lea esi, [esi*2 + 2]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, edi
cmp esi, 0x1000
jb 0x471559
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push esi
push edi
call fcn.00599f8e
add esp, 8
jmp 0x471578
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0059d630
add esp, 0xc
mov dword [edi], 0x5c
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x2f8]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.0046e3c0
mov esi, dword [ebp - 0x30c]
mov ecx, esi
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4715a5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x88]
call fcn.0040656e
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4719d4
jmp 0x4715f0
cmp word [ebp - 0x2c4], 0x2e
jne 0x47161e
mov ax, word [ebp - 0x2c2]
test ax, ax
je 0x4719b7
cmp ax, 0x2e
jne 0x47161e
cmp word [ebp - 0x2c0], 0
je 0x4719b7
test byte [ebp - 0x2f0], 0x10
je 0x4717df
cmp byte [ebp + 0x14], 0
je 0x4719b7
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471640
sub ecx, edx
sar ecx, 1
cmp byte [ebp + 0x18], al
je 0x47169e
mov edx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, edx
cmp eax, ecx
jb 0x471a82
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c4]
push ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x300]
lea ecx, [ebp - 0xa0]
call fcn.0042947e
or ebx, 0x20
lea ecx, [ebp - 0xa0]
or ebx, 2
jmp 0x4716c9
push ecx
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x40], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.004049aa
lea ecx, [ebp - 0x40]
or ebx, 4
mov eax, dword [ecx]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x2f4], ebx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 4
test bl, 4
je 0x471754
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffb
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x471754
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47174a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov byte [ebp - 4], 5
test bl, 2
je 0x4717a6
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffffd
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x4717a6
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47179c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x58]
push ecx
cmp eax, dword [edi + 8]
je 0x4717bf
mov ecx, eax
call fcn.0046e3c0
add dword [edi + 4], 0x18
jmp 0x4717c7
push eax
mov ecx, edi
call fcn.004399a7
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4719b7
mov ecx, dword [ebp - 0x58]
jmp 0x471988
cmp byte [ebp + 0x1c], 0
je 0x4719b7
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4717f2
sub ecx, edx
sar ecx, 1
cmp byte [ebp + 0x18], al
je 0x471850
mov edx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, edx
cmp eax, ecx
jb 0x471a82
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c4]
push ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x300]
lea ecx, [ebp - 0xa0]
call fcn.0042947e
or ebx, 0x40
lea ecx, [ebp - 0xa0]
or ebx, 8
jmp 0x47187b
push ecx
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x40], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.004049aa
lea ecx, [ebp - 0x40]
or ebx, 0x10
mov eax, dword [ecx]
mov dword [ebp - 0x70], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x2f4], ebx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 7
test bl, 0x10
je 0x471906
mov edx, dword [ebp - 0x2c]
and ebx, 0xffffffef
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x471906
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4718fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov byte [ebp - 4], 8
test bl, 8
je 0x471958
mov edx, dword [ebp - 0x8c]
and ebx, 0xfffffff7
mov dword [ebp - 0x2f4], ebx
cmp edx, 8
jb 0x471958
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47194e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x70]
push ecx
cmp eax, dword [edi + 8]
je 0x471971
mov ecx, eax
call fcn.0046e3c0
add dword [edi + 4], 0x18
jmp 0x471979
push eax
mov ecx, edi
call fcn.004399a7
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4719b7
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4719ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push edx
push ecx
call fcn.00599f8e
add esp, 8
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4715f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x471a0d
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471a03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x471a5a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471a50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a7d
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov eax, edi
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.00599f9c
mov esp, ebp
pop ebp
ret
call fcn.00404954
call fcn.005a1930
call fcn.00404949
int3