Function at 0x4ad910
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f3ae
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 0x4ad958
lea eax, [ebx + 0xc]
mov edx, str._s.gsd
test edx, edx
je 0x4ada19
cmp eax, esi
je 0x4ada19
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e5a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401070
push str._s.gsd
lea ecx, [ebp - 0x3c]
call fcn.00402380
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x4ad99d
lea eax, [ebp - 0x18]
mov esi, dword [ebp - 0x34]
push eax
call fcn.005e639f
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005feedc
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x28], edx
je 0x4ad9fe
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.00402400
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x28]
push esi
push eax
call fcn.005e632f
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005e639f
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 0x4ada24
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 0x4ada57
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 0x4ada71
lea esi, [ebx + 0xc]
mov eax, 0x6a012c
test eax, eax
je 0x4adb74
cmp esi, edi
je 0x4adb74
lea ecx, [ebp - 0x280]
test ecx, ecx
je 0x4adb74
push eax
lea ecx, [ebp - 0x58]
call fcn.00402380
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0040e5a0
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 6
call fcn.0040e5a0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401070
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
call fcn.00402400
push eax
call fcn.005e639f
add esp, 4
lea ecx, [ebp - 0x4c]
mov edi, eax
call fcn.00402400
push eax
call fcn.005e639f
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.005feedc
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x4adb50
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.00402400
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402400
push eax
lea ecx, [ebp - 0x58]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e632f
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e639f
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.005feedc
mov ecx, eax
add esp, 4
mov dword [ebp - 0x5c], ecx
test ecx, ecx
mov byte [ebp - 4], 8
je 0x4adb94
call fcn.00516b90
mov ecx, eax
jmp 0x4adb96
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test eax, eax
mov dword [ebp - 0x2c], ecx
jne 0x4adba7
lea eax, [ebp - 0x18]
push eax
call fcn.00516c40
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x6d1260]
mov esi, dword [0x6d1264]
xor bl, bl
xor eax, eax
cmp eax, esi
jge 0x4adbd2
lea edi, [eax + eax*2]
mov edi, dword [edx + edi*4]
cmp edi, dword [ecx + 0x2c]
je 0x4adbd6
inc eax
jmp 0x4adbc0
test bl, bl
je 0x4adc05
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
jne 0x4adbe2
lea eax, [ebp - 0x18]
push eax
push 0x6a00a0
add ecx, 0x30
call fcn.0041aef0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
lea ecx, [edx + 0x14]
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.004adfe0
jmp 0x4adc11
xor edi, edi
cmp ecx, edi
je 0x4adc11
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 0x4adc3e
call fcn.00401070
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4ada3a
call fcn.00401070
mov ebx, dword [ebp - 0x30]
jmp 0x4ada57