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

Disassembly:
push 0xffffffffffffffff
push 0x438eb9
mov eax, dword fs:[0]
push eax
sub esp, 0x7b4
mov eax, dword [0x44c538]
xor eax, esp
mov dword [esp + 0x7b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c538]
xor eax, esp
push eax
lea eax, [esp + 0x7c8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7d8]
mov ebx, dword [esp + 0x7dc]
xor esi, esi
push 0x13c
lea eax, [esp + 0x78]
push esi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x7c], esi
call fcn.004276e0
add esp, 0xc
call fcn.00415e0b
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x408388
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 + 0x48], eax
mov dword [esp + 0x7d0], esi
call fcn.00415e0b
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4083b9
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 + 0x50], eax
mov byte [esp + 0x7d0], 1
call fcn.00415e0b
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4083eb
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 + 0x7d4], 2
call fcn.00404c90
push str.FUNC_01VEN_8086
lea ecx, [esp + 0x44]
mov byte [esp + 0x7d4], 3
call fcn.00404c90
push str.FUNC_01VEN_1002
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7d4], 4
call fcn.00404c90
push str.FUNC_01VEN_1022
lea ecx, [esp + 0x34]
mov byte [esp + 0x7d4], 5
call fcn.00404c90
push str.FUNC_01VEN_10DE
lea ecx, [esp + 0x30]
mov byte [esp + 0x7d4], 6
call fcn.00404c90
push str.FUNC_01VEN_1106
lea ecx, [esp + 0x48]
mov byte [esp + 0x7d4], 7
call fcn.00404c90
push str.FUNC_01VEN_1039
lea ecx, [esp + 0x38]
mov byte [esp + 0x7d4], 8
call fcn.00404c90
push str.FUNC_01VEN_10B9
lea ecx, [esp + 0x40]
mov byte [esp + 0x7d4], 9
call fcn.00404c90
mov ecx, dword [ebx + 0x20]
push esi
push esi
push 0x408
push ecx
mov byte [esp + 0x7e0], 0xa
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x5c0]
push edx
mov dword [esp + 0x24], eax
xor ebx, ebx
call edi
push str.oem.inf
lea eax, [esp + 0x5c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x5c0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x4c], eax
jmp 0x408512
xor esi, esi
lea eax, [esp + 0x9c]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408520
sub eax, ecx
push eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x50]
call fcn.00402de0
mov ebp, dword [esp + 0x48]
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 0x408595
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a
jge 0x408595
push edx
push eax
mov eax, dword [esp + 0x5c]
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 0x408819
lea edx, [esp + 0x5c]
push edx
push 0
push str.Manufacturer
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x4085f3
push 0
push 0x100
lea eax, [esp + 0x1b8]
push eax
push 1
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x4085f3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x1b4]
push eax
push esi
call fcn.004016b0
test eax, eax
jne 0x4085ff
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x408938
lea ecx, [esp + 0x5c]
push ecx
push 0
lea edx, [esp + 0x1b8]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x4085f3
push 0
push 0x100
lea eax, [esp + 0x1b8]
push eax
push 2
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x4085f3
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x408663
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x154], 0
jne 0x408781
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x40868d
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408781
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x4086b7
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408781
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x4086e1
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408781
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x408707
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408781
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x40872d
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408781
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x408753
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408781
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x1b4]
push eax
call fcn.0042706a
add esp, 8
test eax, eax
je 0x4085f3
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
je 0x4085f3
lea edx, [esp + 0x5c]
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 0x408819
push 0
push 0x100
lea eax, [esp + 0x1b8]
push eax
push 1
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x408819
lea eax, [esp + 0x1b0]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4087d0
sub eax, edx
push eax
lea edx, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x20]
call fcn.00402de0
lea ecx, [esp + 0x18]
call fcn.00402ef0
mov eax, dword [esp + 0x18]
push str.REALTEK
push eax
call fcn.0042738f
add esp, 8
test eax, eax
sete al
test al, al
je 0x408819
mov dword [esp + 0x24], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x20], 0
je 0x408938
cmp dword [esp + 0x24], 0
je 0x408938
push ebp
lea ecx, [esp + 0x6c4]
push ecx
call edi
push ebp
lea edx, [esp + 0x4bc]
push edx
call edi
mov esi, dword [esp + 0x58]
push esi
lea eax, [esp + 0x2b4]
push eax
call edi
push esi
lea ecx, [esp + 0x3b8]
push ecx
call edi
lea edx, [esp + 0x4b8]
push 0x43c8f8
push edx
call fcn.0042706a
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 + 0x6c0]
push eax
lea ecx, [esp + 0x2b4]
push ecx
call esi
lea edx, [esp + 0x4b8]
push edx
lea eax, [esp + 0x3b8]
push eax
call esi
push ecx
lea edx, [esp + 0x2b4]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.00404c90
mov ecx, dword [esp + 0x18]
call fcn.004056b0
mov esi, eax
push 0x80
lea eax, [esp + 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x408917
test esi, esi
je 0x408917
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x7820]
imul edx, edx, 0x260
mov dword [edx + eax + 0x15c], 1
push 0x80
lea eax, [esp + 0x3b8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x3b4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408510
cmp dword [esp + 0x20], eax
je 0x408961
cmp dword [esp + 0x24], eax
je 0x408961
lea esi, [eax + 1]
jmp 0x408963
xor esi, esi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x7d0], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40898b
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 + 0x7d0], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x7d0], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089db
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 + 0x7d0], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x7d0], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a2b
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 + 0x7d0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a53
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 + 0x7d0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a7b
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 + 0x7d0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408aa3
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 + 0x7d0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408acb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x7d0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408af3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x7d0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x7c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7b0]
xor ecx, esp
call fcn.0042652f
add esp, 0x7c0
ret 8