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

Disassembly:
push 0xffffffffffffffff
push 0x43ad29
mov eax, dword fs:[0]
push eax
sub esp, 0xed8
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0xed4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0xeec]
mov dword fs:[0], eax
mov edi, dword [esp + 0xefc]
mov ebp, dword [esp + 0xf00]
xor esi, esi
push 0x24c
lea eax, [esp + 0x78]
push esi
push eax
mov ebx, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x7c], esi
call fcn.00427e20
add esp, 0xc
call fcn.00416e3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407866
push 0x80004005
call fcn.00401370
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 + 0xef4], esi
call fcn.00416e3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407897
push 0x80004005
call fcn.00401370
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 + 0xef4], 1
call fcn.00416e3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4078c9
push 0x80004005
call fcn.00401370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x2c]
mov byte [esp + 0xef8], 2
call fcn.00403350
push str.FUNC_01VEN_8086
lea ecx, [esp + 0x44]
mov byte [esp + 0xef8], 3
call fcn.00403350
push str.FUNC_01VEN_1002
lea ecx, [esp + 0x3c]
mov byte [esp + 0xef8], 4
call fcn.00403350
push str.FUNC_01VEN_1022
lea ecx, [esp + 0x34]
mov byte [esp + 0xef8], 5
call fcn.00403350
push str.FUNC_01VEN_10DE
lea ecx, [esp + 0x30]
mov byte [esp + 0xef8], 6
call fcn.00403350
push str.FUNC_01VEN_1106
lea ecx, [esp + 0x48]
mov byte [esp + 0xef8], 7
call fcn.00403350
push str.FUNC_01VEN_1039
lea ecx, [esp + 0x38]
mov byte [esp + 0xef8], 8
call fcn.00403350
push str.FUNC_01VEN_10B9
lea ecx, [esp + 0x40]
mov byte [esp + 0xef8], 9
call fcn.00403350
mov ecx, dword [ebp + 0x20]
push esi
push esi
push 0x408
push ecx
mov byte [esp + 0xf04], 0xa
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
lea edx, [esp + 0xadc]
push 0x104
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], esi
call fcn.00427cd0
push str.oem.inf
lea eax, [esp + 0xae8]
push 0x104
push eax
call fcn.00427d97
add esp, 0x18
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xadc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x4c], eax
jmp 0x407a02
xor esi, esi
lea eax, [esp + 0x9c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407a10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x50]
call fcn.00402b90
mov ebp, dword [esp + 0x48]
push esi
push 2
push esi
push ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
sub ecx, edx
jne 0x407a8b
mov eax, dword [esp + 0x20]
cmp eax, 0x5a
jge 0x407a8b
push ecx
push eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x20]
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
add dword [esp + 0x20], 1
add dword [esp + 0x18], 1
cmp esi, 0xffffffff
je 0x407ced
lea edx, [esp + 0x5c]
push edx
push 0
push str.Manufacturer
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x407aeb
push 0
push 0x100
lea eax, [esp + 0x2c8]
push eax
push 1
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x407aeb
lea edx, [esp + 0x5c]
push edx
push 0
lea eax, [esp + 0x2c8]
push eax
push esi
mov ecx, ebx
call fcn.00406920
test eax, eax
jne 0x407af7
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x407e0e
lea ecx, [esp + 0x5c]
push ecx
push 0
lea edx, [esp + 0x2c8]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x407aeb
push 0
push 0x100
lea eax, [esp + 0x2c8]
push eax
push 2
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x407aeb
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x2c4]
push eax
call fcn.00427681
add esp, 8
test eax, eax
je 0x407b57
cmp dword [ebx + 0x154], 0
jne 0x407c59
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x2c4]
push edx
call fcn.00427681
add esp, 8
test eax, eax
je 0x407b7d
cmp dword [ebx + 0x158], 0
jne 0x407c59
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x2c4]
push ecx
call fcn.00427681
add esp, 8
test eax, eax
je 0x407ba3
cmp dword [ebx + 0x158], 0
jne 0x407c59
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x2c4]
push eax
call fcn.00427681
add esp, 8
test eax, eax
je 0x407bc9
cmp dword [ebx + 0x158], 0
jne 0x407c59
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c4]
push edx
call fcn.00427681
add esp, 8
test eax, eax
je 0x407beb
cmp dword [ebx + 0x158], 0
jne 0x407c59
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x2c4]
push ecx
call fcn.00427681
add esp, 8
test eax, eax
je 0x407c0d
cmp dword [ebx + 0x158], 0
jne 0x407c59
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x2c4]
push eax
call fcn.00427681
add esp, 8
test eax, eax
je 0x407c2f
cmp dword [ebx + 0x158], 0
jne 0x407c59
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c4]
push edx
call fcn.00427681
add esp, 8
test eax, eax
je 0x407aeb
cmp dword [ebx + 0x158], 0
je 0x407aeb
lea eax, [esp + 0x5c]
push eax
push str.MfgName
push str.Strings
push esi
mov dword [esp + 0x2c], 1
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x407ced
push 0
push 0x100
lea ecx, [esp + 0x2c8]
push ecx
push 1
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x407ced
lea eax, [esp + 0x2c0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ca5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402b90
lea ecx, [esp + 0x14]
call fcn.00402d50
lea ecx, [esp + 0x14]
push 0x43f60c
push ecx
call fcn.00402270
add esp, 8
test al, al
je 0x407ced
mov dword [esp + 0x24], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
je 0x407e0e
cmp dword [esp + 0x24], 0
je 0x407e0e
push ebp
lea edx, [esp + 0xce4]
push edx
call edi
push ebp
lea eax, [esp + 0x8d4]
push eax
call edi
mov esi, dword [esp + 0x58]
push esi
lea ecx, [esp + 0x4c4]
push ecx
call edi
push esi
lea edx, [esp + 0x6cc]
push edx
call edi
lea eax, [esp + 0x8d0]
push 0x43f3a0
push eax
call fcn.00427681
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 8
lea ecx, [esp + 0xce0]
push ecx
lea edx, [esp + 0x4c4]
push edx
mov word [eax], 0x2e
mov word [eax + 2], 0x50
mov word [eax + 4], 0x4e
mov word [eax + 6], 0x46
call esi
lea eax, [esp + 0x8d0]
push eax
lea ecx, [esp + 0x6cc]
push ecx
call esi
push ecx
lea edx, [esp + 0x4c4]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.00406860
mov ecx, ebx
call fcn.00406f30
mov esi, eax
push 0x80
lea eax, [esp + 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x4c0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407ded
test esi, esi
je 0x407ded
mov edx, dword [ebx + 0x7a2c]
imul edx, edx, 0x260
mov dword [edx + ebx + 0x368], 1
push 0x80
lea eax, [esp + 0x6cc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x6c8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407a00
cmp dword [esp + 0x1c], eax
je 0x407e37
cmp dword [esp + 0x24], eax
je 0x407e37
lea esi, [eax + 1]
jmp 0x407e39
xor esi, esi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0xef4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e61
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 + 0xef4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e89
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 + 0xef4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407eb1
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 + 0xef4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ed9
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 + 0xef4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f01
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 + 0xef4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f29
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 + 0xef4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f51
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 + 0xef4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xef4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fa1
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 + 0xef4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xef4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xeec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xed4]
xor ecx, esp
call fcn.004274dc
add esp, 0xee4
ret 8