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

Disassembly:
sub esp, 0x36c
mov eax, dword [0x438b20]
push ebp
push esi
push edi
mov dword [esp + 0x374], eax
push 0x104
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402d70
mov ecx, dword [str.Inf.inf]
mov edx, dword [0x41d2f0]
mov ax, word [0x41d2f4]
mov dword [edi], ecx
mov cl, byte [0x41d2f6]
mov dword [edi + 4], edx
mov word [edi + 8], ax
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [edi + 0xa], cl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x402fbc
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402dc5
sub eax, edx
mov byte [esp + eax + 0x26], cl
mov ecx, dword [esp + 0x37c]
mov eax, ecx
lea edx, [esp + 0x270]
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, 0xfffffefc
sub eax, ecx
push ebx
lea ebx, [ecx + 0x104]
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
lea ecx, [esp + 0x20]
call fcn.00415fc0
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x27c]
push str._s_s
push edx
call fcn.00405063
add esp, 0x10
push 0
push 0
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00416258
test eax, eax
je 0x402f9b
mov ecx, dword [esp + 0x154]
add ecx, 0x64
push ecx
call fcn.00405162
mov ecx, dword [esp + 0x158]
add ecx, 0x64
mov edx, ecx
mov ebp, eax
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x158]
add esp, 4
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.00415cd3
push str.Motorola_USB_Modem
push ebp
call fcn.00404e00
add esp, 8
test eax, eax
je 0x402f8e
push str.DriverVer
push ebp
call fcn.00404e00
mov esi, eax
add esp, 8
test esi, esi
je 0x402f17
add esi, 0xa
push 0xd
push esi
call fcn.004057f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x402eda
push 0xa
push esi
call fcn.004057f0
mov edi, eax
add esp, 8
test edi, edi
je 0x402f04
mov ecx, edi
sub ecx, esi
push ecx
push esi
push ebx
call fcn.004056b0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38c]
sub edx, esi
add edx, ebx
add esp, 0xc
add edx, edi
mov byte [edx + eax + 0x104], 0
jmp 0x402f47
mov ecx, dword [str.unknown]
mov dword [ebx], ecx
mov edx, dword [0x41d2c0]
mov dword [ebx + 4], edx
jmp 0x402f47
mov ecx, dword [str.no_information]
mov eax, ebx
mov dword [eax], ecx
mov edx, dword [0x41d2b0]
mov dword [eax + 4], edx
mov ecx, dword [0x41d2b4]
mov dword [eax + 8], ecx
mov dx, word [0x41d2b8]
mov word [eax + 0xc], dx
mov cl, byte [0x41d2ba]
mov byte [eax + 0xe], cl
xor eax, eax
mov ecx, 0x41
lea edi, [ebx - 0x104]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x274]
lea ecx, [ecx]
mov cl, byte [eax]
mov edx, dword [esp + 0x10]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402f60
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
inc edx
add ebx, 0x168
add eax, 0x168
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
push ebp
call fcn.00405174
mov ebp, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00415fff
lea eax, [esp + 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402e00
pop ebx
mov ecx, dword [esp + 0x37c]
imul ebp, ebp, 0x168
push esi
mov byte [ecx + ebp], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebp
call fcn.00404758
add esp, 0x36c
ret