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

Disassembly:
push 0xffffffffffffffff
push 0x4553df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
push edi
lea eax, [esp + 0x18c]
mov edi, ecx
push 0x104
push eax
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x471df4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x298], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x94c]
mov ebp, dword [edi + 0x944]
mov bl, 5
test eax, eax
mov byte [esp + 0x298], bl
jbe 0x40b6a1
push esi
mov dword [esp + 0x28], eax
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.0044a4c1
push 0x46ae0c
lea ecx, [esp + 0x30]
call fcn.0044a442
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
mov byte [esp + 0x2a8], 6
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a0], 7
call fcn.0044a4c1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x29c], 6
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x29c], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40b691
add edi, 0xb40
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x18]
push edx
call fcn.0044a511
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a0], 8
call fcn.0044a4c1
lea ecx, [esp + 0x38]
mov byte [esp + 0x29c], bl
call fcn.0044a3d4
push str.INF_
lea ecx, [esp + 0x38]
call fcn.0044a442
mov esi, eax
lea eax, [esp + 0x190]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x2a0], 9
call fcn.0044a442
push esi
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x2a8], 0xa
call fcn.0044a5b7
lea edx, [esp + 0x18]
mov byte [esp + 0x29c], 0xb
push edx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a0], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x48]
mov byte [esp + 0x29c], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x29c], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x29c], 9
call fcn.0044a3d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x29c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x10]
call fcn.0044a88a
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, edi
call fcn.00449d49
test eax, eax
je 0x40b66a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.0042cf30
add esp, 8
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b54f
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x40b4c1
pop esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x298], 4
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 3
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x298], 2
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x298], 1
call fcn.0044a3d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x298], 0
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x298], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x290]
pop edi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret