Function at 0x4add10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61eb3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
mov eax, dword [ebx + 8]
mov byte [ebp - 4], 1
cmp eax, esi
jne 0x4add58
lea eax, [ebx + 0xc]
mov edx, str._s.gsd
test edx, edx
je 0x4ade19
cmp eax, esi
je 0x4ade19
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e5b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401070
push str._s.gsd
lea ecx, [ebp - 0x3c]
call fcn.00402330
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x4add9d
lea eax, [ebp - 0x18]
mov esi, dword [ebp - 0x34]
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x28], edx
je 0x4addfe
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x1c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x28]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401070
mov ecx, dword [ebp - 0x28]
xor edi, edi
mov eax, ecx
cmp ecx, edi
jne 0x4ade24
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x2ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x4ade57
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x18], di
mov eax, dword [ebx + 8]
mov byte [ebp - 4], 4
cmp eax, edi
mov esi, eax
jne 0x4ade71
lea esi, [ebx + 0xc]
mov eax, 0x6c5124
test eax, eax
je 0x4adf74
cmp esi, edi
je 0x4adf74
lea ecx, [ebp - 0x280]
test ecx, ecx
je 0x4adf74
push eax
lea ecx, [ebp - 0x58]
call fcn.00402330
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0040e5b0
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 6
call fcn.0040e5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401070
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [ebp - 0x4c]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x4adf50
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x3c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x58]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401070
push 0x44
call fcn.005fdccd
mov ecx, eax
add esp, 4
mov dword [ebp - 0x5c], ecx
test ecx, ecx
mov byte [ebp - 4], 8
je 0x4adf94
call fcn.00515f40
mov ecx, eax
jmp 0x4adf96
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test eax, eax
mov dword [ebp - 0x2c], ecx
jne 0x4adfa7
lea eax, [ebp - 0x18]
push eax
call fcn.00515ff0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x6f62d0]
mov esi, dword [0x6f62d4]
xor bl, bl
xor eax, eax
cmp eax, esi
jge 0x4adfd2
lea edi, [eax + eax*2]
mov edi, dword [edx + edi*4]
cmp edi, dword [ecx + 0x2c]
je 0x4adfd6
inc eax
jmp 0x4adfc0
test bl, bl
je 0x4ae005
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
jne 0x4adfe2
lea eax, [ebp - 0x18]
push eax
push 0x6c5098
add ecx, 0x30
call fcn.0041afe0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
lea ecx, [edx + 0x14]
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.004ae3e0
jmp 0x4ae011
xor edi, edi
cmp ecx, edi
je 0x4ae011
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x2ac]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jne 0x4ae03e
call fcn.00401070
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4ade3a
call fcn.00401070
mov ebx, dword [ebp - 0x30]
jmp 0x4ade57