Function at 0x40d150
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4283fb
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x432680]
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
xor ebx, ebx
mov dword [ebp - 0x34c], ebx
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x350], ecx
mov byte [ecx], bl
mov eax, 1
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x360], ebx
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x358], ebx
push ebx
push 0x42d309
mov dword [ebp - 4], eax
call fcn.004055d0
push 0x104
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 0x118], bl
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
test eax, eax
jne 0x40d1f2
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x40d200
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d200
sub eax, edx
je 0x40d5ee
push 6
push str..exe
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x170], bl
call fcn.004055d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x118]
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x198], ebx
mov byte [ebp - 0x1a8], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d252
sub eax, edi
push eax
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x1a8]
call fcn.004055d0
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 3
call fcn.0040fef0
mov edi, 0x10
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x40d299
mov eax, dword [eax]
lea ecx, [ebp - 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x1e8], edi
jb 0x40d2c4
mov edx, dword [ebp - 0x1fc]
push edx
call fcn.00413562
add esp, 4
mov dword [ebp - 0x1e8], esi
mov dword [ebp - 0x1ec], ebx
mov byte [ebp - 0x1fc], bl
cmp dword [ebp - 0x194], edi
jb 0x40d2ed
mov eax, dword [ebp - 0x1a8]
push eax
call fcn.00413562
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x198], ebx
mov byte [ebp - 0x1a8], bl
cmp dword [ebp - 0x15c], edi
jb 0x40d31a
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.00413562
add esp, 4
cmp dword [ebp - 0x344], 0xffffffff
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x170], bl
jne 0x40d3a2
push str.sHGDJC
push 0x13
lea edi, [ebp - 0x348]
call fcn.00401800
mov byte [ebp - 4], 9
mov edi, dword [eax + 4]
mov eax, edi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d365
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x138]
call fcn.004055d0
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x40d390
lea eax, [ebp - 0x138]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00413a4a
xor ebx, ebx
lea eax, [ebp - 0x314]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d3c0
sub eax, edi
push eax
lea edx, [ebp - 0x314]
push edx
lea ecx, [ebp - 0x138]
call fcn.004055d0
mov byte [ebp - 4], 4
push 1
push 0x42d81c
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x17c], ebx
mov byte [ebp - 0x18c], bl
call fcn.004055d0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x118]
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d423
sub eax, edi
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x154]
call fcn.004055d0
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x18c]
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 6
call fcn.0040fef0
mov ecx, eax
lea edx, [ebp - 0x1e0]
push edx
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 7
call fcn.0040fef0
add esp, 8
mov ecx, eax
lea ebx, [ebp - 0x360]
mov byte [ebp - 4], 8
call fcn.00405d40
mov edi, 0x10
cmp dword [ebp - 0x1cc], edi
jb 0x40d4a3
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.00413562
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x1cc], esi
mov dword [ebp - 0x1d0], ebx
mov byte [ebp - 0x1e0], bl
cmp dword [ebp - 0x1b0], edi
jb 0x40d4ce
mov ecx, dword [ebp - 0x1c4]
push ecx
call fcn.00413562
add esp, 4
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1b4], ebx
mov byte [ebp - 0x1c4], bl
cmp dword [ebp - 0x140], edi
jb 0x40d4f7
mov edx, dword [ebp - 0x154]
push edx
call fcn.00413562
add esp, 4
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
cmp dword [ebp - 0x178], edi
jb 0x40d520
mov eax, dword [ebp - 0x18c]
push eax
call fcn.00413562
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x17c], ebx
mov byte [ebp - 0x18c], bl
cmp dword [ebp - 0x124], edi
jb 0x40d54d
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.00413562
add esp, 4
mov eax, dword [ebp - 0x344]
lea edx, [ebp - 0x340]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d3a0
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x35c]
mov edi, dword [ebp - 0x360]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x40d65b
call fcn.00414b0e
xor edx, edx
dec ebx
div ebx
mov esi, dword [ebp - 0x350]
push 0xffffffffffffffff
push 0
mov ecx, esi
lea eax, [edx*8]
sub eax, edx
lea eax, [edi + eax*4]
push eax
call fcn.00404650
lea ebx, [ebp - 0x360]
call fcn.004048e0
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov dword fs:[0], ebx
pop edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412a15
mov esp, ebp
pop ebp
ret
push 0x42dbfc
push 0x11
lea edi, [ebp - 0x348]
call fcn.00401800
mov byte [ebp - 4], 0xa
mov edi, dword [eax + 4]
mov eax, edi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d620
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x138]
call fcn.004055d0
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x40d64b
lea eax, [ebp - 0x138]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00413a4a
push 0x42dc24
push 0xe
lea edi, [ebp - 0x348]
call fcn.00401800
mov byte [ebp - 4], 0xb
mov ecx, dword [eax + 4]
xor ebx, ebx
mov eax, ecx
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40d690
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x138]
call fcn.004055d0
cmp dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x138]
jae 0x40d6bb
lea eax, [ebp - 0x138]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00413a4a
int3