Function at 0x412a40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551898
mov eax, dword fs:[0]
push eax
sub esp, 0x7c4
mov eax, dword [0x59de30]
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 ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c4], 0
push 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push 0x57dfd1
mov ecx, edi
mov dword [ebp - 0x7c8], edi
mov byte [edi], 0
call fcn.004014f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c4], 1
test ebx, ebx
je 0x412ddf
cmp byte [ebx], 0
je 0x412ddf
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.004de2a0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004050f0
push 1
push 0x57d56c
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.004dcc52
push 3
push 0x57e2c0
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.004dcc52
add esp, 0x28
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x52c], 0xf
mov dword [ebp - 0x530], 0
mov byte [ebp - 0x540], 0
jne 0x412b52
xor ecx, ecx
jmp 0x412b69
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
jmp 0x412b60
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412b60
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x540]
call fcn.004014f0
push 2
push 0x57e2d8
lea ecx, [ebp - 0x540]
mov dword [ebp - 4], 1
call fcn.004139f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x528], ax
lea eax, [ebp - 0x526]
push eax
call fcn.004de2a0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x320], ax
lea eax, [ebp - 0x31e]
push eax
call fcn.004de2a0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
cmp dword [ebp - 0x52c], 0x10
push 0x104
lea ecx, [ebp - 0x528]
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x540]
cmovae eax, dword [ebp - 0x540]
push eax
push 0
push 0xfde9
call esi
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
lea eax, [ebp - 0x7c0]
push eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412d55
push 0x557600
lea ecx, [ebp - 0x558]
call fcn.00405af0
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x794], 0
jne 0x412c62
xor eax, eax
jmp 0x412c7f
lea eax, [ebp - 0x794]
lea edx, [eax + 2]
jmp 0x412c70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412c70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x794]
push eax
lea ecx, [ebp - 0x558]
call fcn.00403d70
cmp word [ebp - 0x320], 0
jne 0x412ca0
xor ecx, ecx
jmp 0x412cbf
lea ecx, [ebp - 0x320]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412cb0
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x558]
call fcn.004134a0
cmp eax, 0xffffffff
jne 0x412ced
lea eax, [ebp - 0x7c0]
push eax
push esi
call ebx
test eax, eax
jne 0x412c54
jmp 0x412d33
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x558]
push eax
call fcn.00403f60
lea eax, [ebp - 0x570]
push eax
call fcn.00412190
push eax
mov ecx, edi
call fcn.00412ea0
lea ecx, [ebp - 0x570]
call fcn.00401470
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x544], 8
jb 0x412d55
push dword [ebp - 0x558]
call fcn.004daf24
add esp, 4
cmp dword [edi + 0x10], 0
je 0x412dc8
push 1
push 0x57d56c
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.004dcc52
add esp, 0x10
cmp dword [edi + 0x14], 0x10
jb 0x412d80
mov eax, dword [edi]
jmp 0x412d82
mov eax, edi
push dword [edi + 0x10]
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.004dcc52
add esp, 0x10
cmp byte [ebp - 0x118], 0
jne 0x412da7
xor ecx, ecx
jmp 0x412db9
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412db0
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call fcn.004014f0
cmp dword [ebp - 0x52c], 0x10
jb 0x412ddf
push dword [ebp - 0x540]
call fcn.004daf24
add esp, 4
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.004da4c1
mov esp, ebp
pop ebp
ret 8