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

Disassembly:
push 0xffffffffffffffff
push 0x43895e
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.00427160
add esp, 0xc
call fcn.004158fc
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407fa8
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.004158fc
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407fd9
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.004158fc
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40800b
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.00404b00
push str.FUNC_01VEN_8086
lea ecx, [esp + 0x40]
mov byte [esp + 0x7d0], 3
call fcn.00404b00
push str.FUNC_01VEN_1002
lea ecx, [esp + 0x38]
mov byte [esp + 0x7d0], 4
call fcn.00404b00
push str.FUNC_01VEN_10DE
lea ecx, [esp + 0x30]
mov byte [esp + 0x7d0], 5
call fcn.00404b00
push str.FUNC_01VEN_1106
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7d0], 6
call fcn.00404b00
push str.FUNC_01VEN_1039
lea ecx, [esp + 0x44]
mov byte [esp + 0x7d0], 7
call fcn.00404b00
push str.FUNC_01VEN_10B9
lea ecx, [esp + 0x34]
mov byte [esp + 0x7d0], 8
call fcn.00404b00
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 0x408113
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 0x408120
sub eax, ecx
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00402c50
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 0x408195
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a
jge 0x408195
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 0x4083ec
lea edx, [esp + 0x58]
push edx
push 0
push 0x43bf84
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x4081f3
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 0x4081f3
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 0x4081ff
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x40850b
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 0x4081f3
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 0x4081f3
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x408263
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x154], 0
jne 0x408357
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x40828d
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408357
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x4082b7
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408357
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x4082dd
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408357
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x408303
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408357
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x408329
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408357
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x4081f3
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
je 0x4081f3
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 0x4083ec
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 0x4083ec
lea eax, [esp + 0x1ac]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4083a3
sub eax, edx
push eax
lea edx, [esp + 0x1b0]
push edx
lea ecx, [esp + 0x20]
call fcn.00402c50
lea ecx, [esp + 0x18]
call fcn.00402d60
mov eax, dword [esp + 0x18]
push str.REALTEK
push eax
call fcn.00426e0a
add esp, 8
test eax, eax
sete al
test al, al
je 0x4083ec
mov dword [esp + 0x24], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x20], 0
je 0x40850b
cmp dword [esp + 0x24], 0
je 0x40850b
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 0x43b8f8
push edx
call fcn.00426b4a
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.00404b00
mov ecx, dword [esp + 0x18]
call fcn.00405520
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 0x4084ea
test esi, esi
je 0x4084ea
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 0x408111
cmp dword [esp + 0x20], eax
je 0x408534
cmp dword [esp + 0x24], eax
je 0x408534
lea esi, [eax + 1]
jmp 0x408536
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 0x40855e
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 0x408586
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 0x4085ae
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 0x4085d6
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 0x4085fe
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 0x408626
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 0x40864e
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 0x408676
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 0x40869e
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 0x4086c5
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.00426009
add esp, 0x7bc
ret 8