Function at 0x407d10
Capabilities:
Delete file
Enumerate files on windows
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43873e
mov eax, dword fs:[0]
push eax
sub esp, 0x7b0
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x7ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x7c4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7d4]
mov ebx, dword [esp + 0x7d8]
xor esi, esi
push 0x13c
lea eax, [esp + 0x74]
push esi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], esi
call fcn.00426f40
add esp, 0xc
call fcn.0041564a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407d98
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov dword [esp + 0x7cc], esi
call fcn.0041564a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407dc9
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
mov byte [esp + 0x7cc], 1
call fcn.0041564a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407dfb
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7d0], 2
call fcn.004048f0
push str.FUNC_01VEN_8086
lea ecx, [esp + 0x40]
mov byte [esp + 0x7d0], 3
call fcn.004048f0
push str.FUNC_01VEN_1002
lea ecx, [esp + 0x38]
mov byte [esp + 0x7d0], 4
call fcn.004048f0
push str.FUNC_01VEN_10DE
lea ecx, [esp + 0x30]
mov byte [esp + 0x7d0], 5
call fcn.004048f0
push str.FUNC_01VEN_1106
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7d0], 6
call fcn.004048f0
push str.FUNC_01VEN_1039
lea ecx, [esp + 0x44]
mov byte [esp + 0x7d0], 7
call fcn.004048f0
push str.FUNC_01VEN_10B9
lea ecx, [esp + 0x34]
mov byte [esp + 0x7d0], 8
call fcn.004048f0
mov ecx, dword [ebx + 0x20]
push esi
push esi
push 0x408
push ecx
mov byte [esp + 0x7dc], 9
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x5bc]
push edx
mov dword [esp + 0x24], eax
xor ebx, ebx
call edi
push str.oem.inf
lea eax, [esp + 0x5bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x5bc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x48], eax
jmp 0x407f03
xor esi, esi
lea eax, [esp + 0x98]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407f10
sub eax, ecx
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00402a70
mov ebp, dword [esp + 0x44]
push esi
push 2
push esi
push ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov edx, ebx
sub edx, ecx
jne 0x407f85
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a
jge 0x407f85
push edx
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x20]
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
add dword [esp + 0x1c], 1
add ebx, 1
cmp esi, 0xffffffff
je 0x4081dc
lea edx, [esp + 0x58]
push edx
push 0
push 0x43bf4c
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x407fe3
push 0
push 0x100
lea eax, [esp + 0x1b4]
push eax
push 1
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x407fe3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x1b0]
push eax
push esi
call fcn.004016a0
test eax, eax
jne 0x407fef
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x4082fb
lea ecx, [esp + 0x58]
push ecx
push 0
lea edx, [esp + 0x1b4]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x407fe3
push 0
push 0x100
lea eax, [esp + 0x1b4]
push eax
push 2
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x407fe3
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042692a
add esp, 8
test eax, eax
je 0x408053
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408147
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042692a
add esp, 8
test eax, eax
je 0x40807d
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408147
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042692a
add esp, 8
test eax, eax
je 0x4080a7
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408147
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042692a
add esp, 8
test eax, eax
je 0x4080cd
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408147
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042692a
add esp, 8
test eax, eax
je 0x4080f3
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408147
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042692a
add esp, 8
test eax, eax
je 0x408119
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408147
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042692a
add esp, 8
test eax, eax
je 0x407fe3
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
je 0x407fe3
lea edx, [esp + 0x58]
push edx
push str.MfgName
push str.Strings
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x4081dc
push 0
push 0x100
lea eax, [esp + 0x1b4]
push eax
push 1
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x4081dc
lea eax, [esp + 0x1ac]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408193
sub eax, edx
push eax
lea edx, [esp + 0x1b0]
push edx
lea ecx, [esp + 0x20]
call fcn.00402a70
lea ecx, [esp + 0x18]
call fcn.00402b80
mov eax, dword [esp + 0x18]
push str.REALTEK
push eax
call fcn.00426bea
add esp, 8
test eax, eax
sete al
test al, al
je 0x4081dc
mov dword [esp + 0x24], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x20], 0
je 0x4082fb
cmp dword [esp + 0x24], 0
je 0x4082fb
push ebp
lea ecx, [esp + 0x6c0]
push ecx
call edi
push ebp
lea edx, [esp + 0x4b8]
push edx
call edi
mov esi, dword [esp + 0x54]
push esi
lea eax, [esp + 0x2b0]
push eax
call edi
push esi
lea ecx, [esp + 0x3b4]
push ecx
call edi
lea edx, [esp + 0x4b4]
push 0x43b8e8
push edx
call fcn.0042692a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
mov byte [eax], 0x2e
mov byte [eax + 1], 0x50
mov byte [eax + 2], 0x4e
mov byte [eax + 3], 0x46
lea eax, [esp + 0x6bc]
push eax
lea ecx, [esp + 0x2b0]
push ecx
call esi
lea edx, [esp + 0x4b4]
push edx
lea eax, [esp + 0x3b4]
push eax
call esi
push ecx
lea edx, [esp + 0x2b0]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.004048f0
mov ecx, dword [esp + 0x18]
call fcn.00405310
mov esi, eax
push 0x80
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x2ac]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4082da
test esi, esi
je 0x4082da
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x2a00]
imul edx, edx, 0xd0
mov dword [edx + eax + 0x15c], 1
push 0x80
lea eax, [esp + 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407f01
cmp dword [esp + 0x20], eax
je 0x408324
cmp dword [esp + 0x24], eax
je 0x408324
lea esi, [eax + 1]
jmp 0x408326
xor esi, esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40834e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408376
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40839e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40843e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408466
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40848e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x7cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x7c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7ac]
xor ecx, esp
call fcn.00425dea
add esp, 0x7bc
ret 8