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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f2aa
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x10014034]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push esi
push edi
mov eax, dword [0x10014034]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2b6]
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x2b8], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x2ac]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10003527
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10010410
lea ecx, [esp + 0x2b0]
push ecx
call esi
lea edx, [esp + 0x2ac]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10003527
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2b0]
call fcn.10005f30
push str.oem.inf
lea ecx, [esp + 0x2b0]
push ecx
mov dword [esp + 0x4d0], 0
call esi
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x10003330
mov dword [esp + 0x4c8], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10003527
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x4c8], 1
mov edx, dword [esp + 0x14]
push ecx
push edx
push str._s_s
lea edi, [esp + 0x24]
call fcn.10007890
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call fcn.1000a9a0
mov byte [esp + 0x4c8], 2
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
mov eax, esi
call fcn.100072e0
lea edi, [eax + 0x10]
mov dword [esp + 0x58], edi
mov byte [esp + 0x4c8], 3
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x10]
push 0x40
push edi
lea ecx, [esp + 0x2c]
call eax
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x100033cd
lea ecx, [esp + 0x24]
push ecx
call fcn.1000ad40
lea ebx, [esp + 0x24]
call fcn.1000b2d0
mov ebx, dword [esp + 0x10]
add edi, 0xfffffff0
mov byte [esp + 0x4c8], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x100033f1
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test ebx, ebx
je 0x1000347c
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
push ecx
push str.USBVID__s
lea edi, [esp + 0x18]
mov byte [esp + 0x4d0], 4
call fcn.10007890
add esp, 8
lea edx, [esp + 0x24]
push edx
call fcn.1000b9e0
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1000354f
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.1000aaf0
test eax, eax
jne 0x1000354f
lea eax, [edi - 0x10]
mov byte [esp + 0x4c8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000347c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c8], 7
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
call fcn.1000d2c0
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x3c]
add esp, 4
lea ecx, [esp + 0x24]
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x4c8], 6
call fcn.1000d300
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c8], 5
call fcn.1000d300
lea ecx, [esp + 0x24]
call fcn.1000cd20
mov byte [esp + 0x4c8], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003506
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003330
lea ecx, [esp + 0x14]
call fcn.10005fe0
xor eax, eax
mov ecx, dword [esp + 0x4c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret 8
lea eax, [edi - 0x10]
mov byte [esp + 0x4c8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x4cc], 1
call fcn.1000aa50
mov byte [esp + 0x4c8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100035ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100035d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x10003529