Function at 0x416a40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ad931
mov eax, dword fs:[0]
push eax
sub esp, 0x94c
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x948], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c0390]
xor eax, esp
push eax
lea eax, [esp + 0x960]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp byte [esi], bl
jne 0x416d29
push 0x3ad8
mov byte [esi], 1
mov dword [esi + 0x204], ebx
call fcn.0049ec14
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x968], ebx
cmp eax, ebx
je 0x416ab5
mov ecx, eax
call fcn.00411a60
jmp 0x416ab7
xor eax, eax
mov dword [esp + 0x968], 0xffffffff
mov ecx, dword [esi + 0x204]
push 4
mov dword [esi + ecx*4 + 4], eax
call fcn.0049ec14
add esp, 4
cmp eax, ebx
je 0x416ae2
mov dword [eax], 0x4b1ab4
jmp 0x416ae4
xor eax, eax
mov edx, dword [esi + 0x204]
mov dword [esi + edx*4 + 0x104], eax
mov ebp, 1
add dword [esi + 0x204], ebp
push 0x28
call fcn.0049ec14
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x968], ebp
cmp eax, ebx
je 0x416b20
mov ecx, eax
call fcn.00412020
mov edi, eax
jmp 0x416b22
xor edi, edi
mov dword [esp + 0x968], 0xffffffff
mov eax, dword [esi + 0x204]
push 8
mov dword [esi + eax*4 + 4], edi
call fcn.0049ec14
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x968], 2
cmp eax, ebx
je 0x416b5f
mov dword [eax], 0x4b1b04
mov dword [eax + 4], edi
jmp 0x416b61
xor eax, eax
mov dword [esp + 0x968], 0xffffffff
mov ecx, dword [esi + 0x204]
push 0x400
lea edx, [esp + 0x160]
push edx
mov dword [esi + ecx*4 + 0x104], eax
add dword [esi + 0x204], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x15c]
push eax
call fcn.0044d530
mov ecx, dword [str.Formats.fmt]
mov dword [eax], ecx
mov edx, dword [0x4b1c14]
mov dword [eax + 4], edx
mov ecx, dword [0x4b1c18]
mov dword [eax + 8], ecx
mov dx, word [0x4b1c1c]
mov word [eax + 0xc], dx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
cmp ecx, 0xffffffff
sete al
mov dword [esp + 0x14], ecx
cmp al, bl
jne 0x416d22
lea esp, [esp]
xor eax, eax
jmp 0x416c00
mov cl, byte [esp + eax + 0x15c]
mov byte [esp + eax + 0x55c], cl
add eax, ebp
cmp cl, bl
jne 0x416c00
lea edx, [esp + 0x55c]
push edx
lea edi, [esp + 0x4c]
call fcn.0044d530
mov cl, byte [edi]
mov byte [eax], cl
add edi, ebp
add eax, ebp
cmp cl, bl
jne 0x416c25
push 0x4b4
call fcn.0049ec14
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x968], 3
cmp eax, ebx
je 0x416c80
mov dword [eax], 0x4b18ec
mov byte [esp + 0x968], 4
mov dword [eax], 0x4b1ae8
mov byte [eax + 4], bl
mov dword [eax + 0x404], ebx
mov dword [eax + 0x4b0], ebx
mov byte [esp + 0x968], 3
mov edi, eax
jmp 0x416c82
xor edi, edi
mov dword [esp + 0x968], 0xffffffff
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x560]
push ecx
mov ecx, edi
call fcn.00415f20
test al, al
je 0x416cf9
push 8
call fcn.0049ec14
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x968], 5
cmp eax, ebx
je 0x416ccd
mov dword [eax], 0x4b1a80
mov dword [eax + 4], edi
jmp 0x416ccf
xor eax, eax
mov dword [esp + 0x968], 0xffffffff
mov edx, dword [esi + 0x204]
mov dword [esi + edx*4 + 4], edi
mov ecx, dword [esi + 0x204]
mov dword [esi + ecx*4 + 0x104], eax
add dword [esi + 0x204], ebp
jmp 0x416d06
cmp edi, ebx
je 0x416d06
mov edx, dword [edi]
mov eax, dword [edx]
push ebp
mov ecx, edi
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x416bf0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x960]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x948]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x958
ret