Function at 0x474380
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3103
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x527d34]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2d8], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edi, 7
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
mov word [ebp - 0x58], ax
push 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2c4], eax
call fcn.00493f75
mov dword [ebp - 0x2d4], eax
lea ecx, [ebp - 0x2d4]
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x2d4]
mov dword [eax], ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x474465
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x474459
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00463450
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x474482
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x474476
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00463450
push 1
push 0x4edc70
lea ecx, [ebp - 0x28]
call fcn.00463350
mov esi, dword [ebp - 0x2d8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4744a1
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00463350
push 0x250
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.004ad050
add esp, 0xc
lea ecx, [ebp - 0x2c0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4747b0
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
nop dword [eax]
test byte [ebp - 0x2c0], 0x10
je 0x4746aa
xor eax, eax
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474520
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00463450
lea eax, [ebp - 0x70]
push str..:_
push eax
call fcn.00471250
add esp, 8
test al, al
jne 0x47456b
lea eax, [ebp - 0x70]
xor esi, esi
push 0x4edc98
push eax
call fcn.00471250
add esp, 8
test al, al
je 0x474570
mov esi, 1
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x4745aa
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4745a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4748a0
push edx
push ecx
call fcn.00493fa5
add esp, 8
test esi, esi
jne 0x4746a4
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.00463450
push 1
push 0x4edc70
lea ecx, [ebp - 0x58]
call fcn.00463350
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4745e1
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00463350
mov edx, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2cc]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x47462c
push 1
lea ecx, [ebp - 0x2d4]
call fcn.004791e0
mov edx, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2c8]
dec ecx
and eax, ecx
mov dword [ebp - 0x2c8], eax
add eax, edx
and eax, ecx
mov ecx, dword [ebp - 0x2d0]
lea esi, [eax*4]
cmp dword [esi + ecx], 0
jne 0x47466b
push 0x18
call fcn.00493f75
mov edx, dword [ebp - 0x2d0]
add esp, 4
mov dword [esi + edx], eax
mov ecx, dword [ebp - 0x2d0]
mov ecx, dword [esi + ecx]
lea eax, [ebp - 0x58]
push eax
call fcn.00412d20
mov esi, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x58]
inc dword [ebp - 0x2c4]
push ecx
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x47469c
mov ecx, eax
call fcn.00412d20
add dword [esi + 4], 0x18
jmp 0x4746a4
push eax
mov ecx, esi
call fcn.0045db80
mov esi, dword [ebp - 0x2d8]
lea eax, [ebp - 0x2c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4747a4
push ebx
call edi
cmp dword [ebp - 0x2c4], 0
jbe 0x4747ad
mov eax, dword [ebp - 0x2d4]
test eax, eax
je 0x4746dc
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x2c8]
dec ecx
mov eax, dword [eax + 4]
and ecx, edx
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x474711
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4746ff
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00463450
mov edx, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2d0]
dec ecx
and ecx, edx
push dword [eax + ecx*4]
lea eax, [ebp - 0x2d4]
push eax
call fcn.0045e850
add esp, 8
sub dword [ebp - 0x2c4], 1
jne 0x474747
mov dword [ebp - 0x2c8], 0
jmp 0x47474d
inc dword [ebp - 0x2c8]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00463450
push 1
push 0x4edc70
lea ecx, [ebp - 0x28]
call fcn.00463350
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x47477d
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00463350
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4744f0
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
xor ecx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
lea ecx, [ebp - 0x2d4]
sbb esi, esi
neg esi
call fcn.00473340
cmp edi, 8
jb 0x474816
mov ecx, dword [ebp - 0x58]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47480c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4748a0
push edx
push ecx
call fcn.00493fa5
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x47484c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474842
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4748a5
push edx
push ecx
call fcn.00493fa5
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x474882
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474878
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4748aa
push edx
push ecx
call fcn.00493fa5
add esp, 8
mov eax, esi
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.0049425b
mov esp, ebp
pop ebp
ret
call fcn.004af5bc
call fcn.004af5bc
call fcn.004af5bc
int3