Function at 0x528ec0
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ada1e
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x4b0], edi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
push ecx
push str.CBaseInfFile::EnumInf
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x4bc], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x528fa7
test byte [ecx + 0x1c], 1
je 0x528f6b
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dfc3c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x13
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x528fa7
test byte [ecx + 0x1c], 1
je 0x528fa7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5dfc3c
push ebx
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x14
call fcn.00430170
add esp, 0x14
push 0x250
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea ecx, [ebp - 0x4a8]
push ebx
call fcn.00403320
mov byte [ebp - 4], 1
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x529839
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4b8], eax
mov byte [ebp - 4], 2
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x529843
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c8], esi
push 0x208
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
add esp, 0xc
push dword [edi + 8]
call fcn.004e6bc0
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 0x4a8]
mov edi, dword [ecx - 0xc]
cmp edi, 1
jg 0x52906c
add ecx, 0xfffffff0
call fcn.00403af0
lea edi, [eax + 0x10]
mov dword [ebp - 0x4ac], edi
jmp 0x5290a9
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x52907c
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x529088
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x4a8]
lea ecx, [ebp - 0x4ac]
push 1
lea eax, [eax + edi*2]
add eax, 0xfffffffe
push eax
call fcn.00403d50
mov edi, dword [ebp - 0x4ac]
mov edx, 0x5df974
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4ac]
call fcn.004253d0
mov byte [ebp - 0x4b1], al
add edi, 0xfffffff0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x5290e5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x4b1]
test al, al
je 0x5290f9
push 0x5df974
lea ecx, [ebp - 0x4a8]
call fcn.0052db90
mov eax, dword [ebp - 0x4a8]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x103
or ecx, edx
jge 0x52912a
push 0x103
lea ecx, [ebp - 0x4a8]
call fcn.00403b50
mov eax, dword [ebp - 0x4a8]
push eax
mov eax, dword [ebp - 0x4b0]
add eax, 0x22f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x52924a
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x5291a3
test byte [ecx + 0x1c], 2
je 0x5291a3
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x254]
mov edi, 0x608f54
cmovae edi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5dfc3c
push edi
mov ecx, 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
mov byte [ebp - 0x250], 1
cmp ecx, 0x608f30
je 0x5291e6
test byte [ecx + 0x1c], 1
je 0x5291e6
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0xffffffffffffffff
cmovae eax, dword [0x608f54]
mov edx, 0x5dfc3c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x16
call fcn.004018a0
add esp, 0x10
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x529204
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x4b8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x529225
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov esi, dword [ebp - 0x4a8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x52980e
mov ecx, dword [esi]
push esi
jmp 0x529809
cmp dword [ebp + 0x10], 0
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], 0x927
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], 0xffffffff
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 0
push eax
je 0x5292da
push 0x5df978
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x4ac], edi
jmp 0x5292ed
push str..inf
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x4ac], eax
mov ebx, dword [ebp - 0x4b0]
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x34]
call fcn.0055b63e
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x20]
call fcn.005630a1
xor eax, eax
mov ecx, 1
cmp edi, 0xffffffff
mov dword [ebp - 0x4bc], ecx
mov edi, dword [ebp - 0x4b8]
setne al
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp - 0x4c0], ecx
test eax, eax
je 0x5296fb
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x52935a
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x529370
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x52984d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x478]
or dword [ebp - 0x4bc], 2
lea edx, [ecx + 2]
mov dword [ebp - 0x4cc], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x529390
sub ecx, edx
lea eax, [ebp - 0x478]
mov edx, dword [ebp - 0x4a8]
sar ecx, 1
push ecx
push eax
push dword [edx - 0xc]
lea ecx, [ebp - 0x4cc]
call fcn.00416280
mov eax, dword [ebp - 0x4cc]
lea ebx, [edi - 0x10]
add esp, 0xc
lea esi, [eax - 0x10]
cmp esi, ebx
je 0x529424
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x52940f
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x52940f
mov ecx, esi
call fcn.00403af0
mov dword [ebp - 0x4d0], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x529404
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4d0]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4b8], edi
jmp 0x529424
push dword [eax - 0xc]
lea ecx, [ebp - 0x4b8]
push eax
call fcn.00403bb0
mov edi, dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4bc], eax
or eax, 0xffffffff
mov byte [ebp - 4], 5
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x529449
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x478]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x529452
sub ecx, edx
lea eax, [ebp - 0x478]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c8]
call fcn.00403bb0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x5294bb
test byte [ecx + 0x1c], 4
je 0x5294bb
push dword [ebp - 0x4c4]
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5dfc3c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x17
call fcn.00430170
add esp, 0x14
mov ecx, dword [ebp - 0x4d4]
push dword [ebp - 0x4c4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x34]
mov esi, eax
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x529516
test byte [ecx + 0x1c], 4
je 0x529516
push dword [ebp - 0x4c4]
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5dfc3c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x18
call fcn.00430170
add esp, 0x14
test esi, esi
je 0x5296ca
push 0x2b8
call fcn.0055070f
mov ecx, eax
add esp, 4
mov dword [ebp - 0x4c0], ecx
mov ebx, dword [ebp - 0x4b0]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x529561
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 0x14]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x4c8]
push eax
call fcn.00527e70
mov esi, eax
jmp 0x529563
xor esi, esi
mov byte [ebp - 4], 5
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x529618
test byte [edx + 0x1c], 4
je 0x529618
mov eax, dword [ebx + 0x1c]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x64
or eax, ecx
jge 0x5295a8
push 0x64
lea ecx, [ebx + 0x1c]
call fcn.00403b50
mov edx, dword [0x608f30]
mov eax, dword [ebx + 0x1c]
mov ecx, 1
mov ebx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebx + 0x10]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x64
or eax, ecx
jge 0x5295dc
push 0x64
lea ecx, [ebx + 0x10]
call fcn.00403b50
mov edx, dword [0x608f30]
push dword [ebp - 0x4c0]
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x478]
push dword [ebx + 0x10]
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push ecx
push eax
push dword [edx + 0x14]
mov ecx, 0x19
push dword [edx + 0x10]
mov edx, 0x5dfc3c
call fcn.0040c1c0
add esp, 0x18
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x18]
call fcn.0055b63e
push 0xffffffffffffffff
lea ecx, [esi + 0x2c]
push 0
call fcn.0055b63e
push 0xffffffffffffffff
lea ecx, [esi + 0x40]
push 0
call fcn.0055b63e
push 0xffffffffffffffff
lea ecx, [esi + 0x54]
push 0
call fcn.0055b63e
push 0xffffffffffffffff
lea ecx, [esi + 0x68]
push 0
call fcn.0055b63e
mov eax, dword [ebp - 0x4b0]
lea ecx, [esi + 0x18]
add eax, 0x290
push eax
call fcn.0055b301
mov ebx, dword [ebp - 0x4b0]
lea ecx, [esi + 0x2c]
lea eax, [ebx + 0x2a4]
push eax
call fcn.0055b301
lea eax, [ebx + 0x2b8]
push eax
lea ecx, [esi + 0x40]
call fcn.0055b301
lea eax, [ebx + 0x2cc]
push eax
lea ecx, [esi + 0x54]
call fcn.0055b301
lea eax, [ebx + 0x2e0]
push eax
lea ecx, [esi + 0x68]
call fcn.0055b301
lea ecx, [ebx + 0x20]
push esi
push dword [ecx + 8]
call fcn.0056306e
lea eax, [ebp - 0x478]
lea ecx, [ebx + 0x34]
push eax
push dword [ecx + 8]
call fcn.0055b606
jmp 0x5296d0
mov ebx, dword [ebp - 0x4b0]
lea eax, [ebp - 0x4a4]
mov dword [ebp - 4], 3
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x4bc]
jmp 0x529330
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x52974a
test byte [ecx + 0x1c], 4
je 0x52974a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [ebx + 0x3c]
cmovae eax, dword [0x608f54]
mov edx, 0x5dfc3c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1a
call fcn.004018a0
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x529768
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 0x250], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x5297b2
test byte [ecx + 0x1c], 1
je 0x5297b2
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [ebx + 0x3c]
cmovae eax, dword [0x608f54]
mov edx, 0x5dfc3c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1b
call fcn.004018a0
add esp, 0x10
mov ebx, dword [ebx + 0x3c]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5297d1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5297ef
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4a8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x52980e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x254]
call fcn.0040a570
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
mov ecx, dword [ebp - 0x4dc]
call fcn.00551258
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x52988c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x4ec]
call fcn.004b1250
push 0x604f00
lea eax, [ebp - 0x4ec]
push eax
call fcn.00571ef7
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x5298d2
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x4d8], eax
lea eax, [ebp - 0x4d8]
push 0x604fd4
push eax
call fcn.00571ef7
int3