Function at 0x406df0
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4388c2
mov eax, dword fs:[0]
push eax
sub esp, 0xeb4
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0xeb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0xec8]
mov dword fs:[0], eax
mov esi, ecx
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], esi
call fcn.00404b00
xor edi, edi
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x48]
mov dword [esp + 0xed4], edi
call fcn.00404b00
push 0x1ff
lea eax, [esp + 0x1bd]
push edi
push eax
mov byte [esp + 0xedc], 1
mov byte [esp + 0x1c4], 0
call fcn.00427160
push 0x1ff
lea ecx, [esp + 0xbcd]
push edi
push ecx
mov byte [esp + 0xbd4], 0
call fcn.00427160
push 0x1ff
lea edx, [esp + 0x8d9]
push edi
push edx
mov byte [esp + 0x8e0], 0
call fcn.00427160
add esp, 0x24
push 0x43b9a7
lea ecx, [esp + 0x54]
call fcn.00404b00
mov byte [esp + 0xed0], 2
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
call fcn.004158fc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406ef2
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 + 0xed0], 3
call fcn.004158fc
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406f24
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x20]
push ecx
mov bl, 4
mov ecx, esi
mov byte [esp + 0xed4], bl
call fcn.00405d20
push 0x43bf2c
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xedc], 5
call fcn.00402eb0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x4cc]
push 0x200
push eax
call fcn.00427661
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xed0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x140
lea ecx, [esp + 0x7c]
push edi
push ecx
call fcn.00427160
add esp, 0xc
xor eax, eax
jmp 0x406fe0
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x406fe0
mov eax, dword [0x44ca10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407000
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407015
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1b8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407040
mov edx, dword [0x43c020]
mov cx, word [0x43c024]
mov dword [eax], edx
lea edx, [esp + 0x78]
mov word [eax + 4], cx
push edx
lea eax, [esp + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x407e22
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 6
push 0
push str.HDAUDIO
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
lea ecx, [esp + 0x5c]
push ecx
push 0
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], 0x1c
mov dword [esp + 0x44], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x407986
jmp 0x4070c0
mov ecx, dword [esp + 0x20]
push 0
push 0x100
lea edx, [esp + 0x7c4]
push edx
lea eax, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
mov eax, dword [0x44c9d4]
mov esi, dword [esp + 0x14]
xor edx, edx
cmp eax, 0x5a
setge dl
push 0
sub edx, 1
and edx, 5
add eax, edx
push eax
mov dword [0x44c9d4], eax
mov eax, dword [esi + 0x2a50]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00411013
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x7c0]
push edx
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x407958
xor eax, eax
mov edi, 1
nop
mov cl, byte [esp + eax + 0x7bc]
mov byte [esp + eax + 0x6bc], cl
add eax, edi
test cl, cl
jne 0x407140
xor eax, eax
jmp 0x407160
mov cl, byte [esp + eax + 0x7bc]
mov byte [esp + eax + 0xabc], cl
add eax, edi
test cl, cl
jne 0x407160
mov eax, dword [0x44c9d4]
add dword [esp + 0x48], edi
mov byte [esp + 0xaf6], cl
xor ecx, ecx
cmp eax, 0x5a
setge cl
push 0
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], 0
sub ecx, edi
and ecx, 0xa
add eax, ecx
push eax
mov dword [0x44c9d4], eax
mov edx, dword [esi + 0x2a50]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00411013
push 0x140
lea eax, [esp + 0x7c]
push 0
push eax
mov byte [esp + 0x6f9], 0
call fcn.00427160
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, edi
test cl, cl
jne 0x4071e0
mov eax, dword [0x44ca10]
mov edx, eax
jmp 0x407200
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407200
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407215
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1b8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407240
mov ecx, dword [0x43c020]
mov dx, word [0x43c024]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40743f
jmp 0x407280
xor eax, eax
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407282
lea eax, [esp + 0xa4]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4072a0
lea edi, [esp + 0x1b8]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4072b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 2
mov ecx, eax
push 0
lea edx, [esp + 0x1c4]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407424
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea eax, [esp + 0x24]
push eax
push 0
push str.Manufacturer
push esi
call edi
test eax, eax
je 0x40741d
push 0
push 0x104
lea ecx, [esp + 0x3c0]
push ecx
push 1
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x40741d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3bc]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004016a0
test eax, eax
jne 0x407354
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x40742b
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x3c0]
push eax
push esi
call edi
test eax, eax
je 0x40741d
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
jmp 0x407380
push 0
push 0x104
lea ecx, [esp + 0x3c0]
push ecx
push 2
lea edx, [esp + 0x34]
push edx
call edi
test eax, eax
je 0x4073e9
lea eax, [esp + 0x3b8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4073a6
sub eax, edx
push eax
lea eax, [esp + 0x3bc]
push eax
lea ecx, [esp + 0x20]
call fcn.00402c50
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jl 0x4073e9
lea ecx, [esp + 0x6bc]
push ecx
push ebp
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x4073e9
sub eax, ebp
cmp eax, 0xffffffff
jne 0x4073fd
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x407380
jmp 0x40741d
xor eax, eax
nop
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0xbbc], cl
add eax, 1
test cl, cl
jne 0x407400
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
jne 0x40743f
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407280
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1c], 0
jne 0x4078a9
push 0x140
lea edx, [esp + 0x7c]
push 0
push edx
mov byte [esp + 0x6e9], 0
call fcn.00427160
add esp, 0xc
xor eax, eax
nop
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407470
mov eax, dword [0x44ca10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407490
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4074a5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1b8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4074d0
mov ecx, dword [0x43c020]
mov dx, word [0x43c024]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4076df
jmp 0x407510
xor eax, eax
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407512
lea eax, [esp + 0xa4]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407530
lea edi, [esp + 0x1b8]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407545
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 2
mov ecx, eax
push 0
lea edx, [esp + 0x1c4]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4076c4
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea eax, [esp + 0x24]
push eax
push 0
push str.Manufacturer
push esi
call edi
test eax, eax
je 0x4076bd
push 0
push 0x104
lea ecx, [esp + 0x3c0]
push ecx
push 1
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x4076bd
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3bc]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004016a0
test eax, eax
jne 0x4075e4
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x4076cb
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x3c0]
push eax
push esi
call edi
test eax, eax
je 0x4076bd
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
jmp 0x407610
push 0
push 0x104
lea ecx, [esp + 0x3c0]
push ecx
push 2
lea edx, [esp + 0x34]
push edx
call edi
test eax, eax
je 0x407682
lea eax, [esp + 0x3b8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004036f0
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jl 0x407682
lea ecx, [esp + 0x6bc]
push ecx
push ebp
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x407682
sub eax, ebp
cmp eax, 0xffffffff
je 0x407682
cmp dword [ebp - 0xc], 0
jl 0x40769a
push str.SUBSYS
push ebp
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x40769a
sub eax, ebp
cmp eax, 0xffffffff
je 0x40769a
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x407610
jmp 0x4076bd
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0xbbc], cl
add eax, 1
test cl, cl
jne 0x4076a0
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
jne 0x4076df
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407510
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1c], 0
jne 0x4078a9
xor eax, eax
jmp 0x407700
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407700
push str..inf
lea edx, [esp + 0x58]
push 0x44ca10
push edx
call fcn.00402eb0
mov eax, dword [eax]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407730
lea edi, [esp + 0x1b8]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407747
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x54]
and ecx, 3
add eax, 0xfffffff0
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40777f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 2
push 0
lea ecx, [esp + 0x1c4]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407949
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea edx, [esp + 0x24]
push edx
push 0
push str.Manufacturer
push esi
call edi
test eax, eax
je 0x407896
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
push 0
push 0x104
lea eax, [esp + 0x3c0]
push eax
push 1
lea ecx, [esp + 0x34]
push ecx
call ebx
test eax, eax
je 0x407896
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3bc]
push eax
push esi
call fcn.004016a0
test eax, eax
jne 0x407808
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x407958
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x3c0]
push edx
push esi
call edi
test eax, eax
je 0x407896
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
jmp 0x407830
push 0
push 0x104
lea eax, [esp + 0x3c0]
push eax
push 2
lea ecx, [esp + 0x34]
push ecx
call ebx
test eax, eax
je 0x407888
lea edx, [esp + 0x3b8]
push edx
lea ecx, [esp + 0x1c]
call fcn.004036f0
mov eax, dword [esp + 0x44]
test eax, eax
mov ebp, dword [esp + 0x18]
je 0x407888
cmp dword [ebp - 0xc], 0
jl 0x407888
push eax
push ebp
call fcn.00426b4a
add esp, 8
test eax, eax
je 0x407888
sub eax, ebp
cmp eax, 0xffffffff
jne 0x407917
lea eax, [esp + 0x24]
push eax
mov ecx, eax
push ecx
call edi
test eax, eax
jne 0x407830
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test edi, edi
je 0x407949
mov eax, dword [0x44c9d4]
mov esi, dword [esp + 0x14]
xor edx, edx
cmp eax, 0x5a
setge dl
push 0
sub edx, 1
and edx, 0x14
add eax, edx
push eax
mov dword [0x44c9d4], eax
mov eax, dword [esi + 0x2a50]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00411013
lea ecx, [esp + 0x58]
push ecx
push 1
lea edx, [esp + 0xbc4]
push edx
lea eax, [esp + 0xac8]
push eax
push 0
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesA
test eax, eax
jne 0x40793f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00403e60
jmp 0x407958
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0xbbc], cl
add eax, 1
test cl, cl
jne 0x407920
mov edi, 1
jmp 0x40789a
mov dword [esp + 0x34], 1
jmp 0x407958
cmp dword [esp + 0x48], 0
jne 0x407958
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x44], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4070c0
cmp dword [esp + 0x40], eax
jne 0x407d0b
mov eax, dword [0x44c9d4]
mov ebx, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 0x5a
setge cl
push 0
sub ecx, 1
and ecx, 0x32
add eax, ecx
push eax
mov dword [0x44c9d4], eax
mov edx, dword [ebx + 0x2a50]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, ebx
call fcn.00411013
push 0x140
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.00427160
add esp, 0xc
xor eax, eax
jmp 0x4079e0
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x4079e0
mov eax, dword [0x44ca10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407a00
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407a15
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1b8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407a40
mov ecx, dword [str.Rt.inf]
mov dx, word [0x43c0a4]
mov dword [eax], ecx
mov cl, byte [0x43c0a6]
mov word [eax + 4], dx
lea edx, [esp + 0x78]
mov byte [eax + 6], cl
push edx
lea eax, [esp + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x407ace
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0x104
lea ecx, [esp + 0xdc8]
push ecx
push 0
push 1
push 0
lea edx, [esp + 0x1d4]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
test eax, eax
jne 0x407ac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00403e60
jmp 0x407d0f
mov dword [esp + 0x34], 1
jmp 0x407d0f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x140
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.00427160
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407af0
mov eax, dword [0x44ca10]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407b10
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407b25
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1b8]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407b50
mov ecx, dword [0x43c020]
mov dx, word [0x43c024]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407d00
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
mov eax, dword [0x44ca10]
lea edx, [esp + 0x8bc]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x407ba0
lea eax, [esp + 0x8bc]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407bb6
mov edx, dword [str.Rt.inf]
mov cx, word [0x43c0a4]
mov dword [eax], edx
mov dl, byte [0x43c0a6]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x8bc]
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.00426830
add esp, 8
test eax, eax
jne 0x407cec
mov eax, dword [0x44ca10]
lea edx, [esp + 0x8bc]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x407c10
lea eax, [esp + 0x8bc]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407c26
mov edx, dword [str..inf]
mov cl, byte [0x43c0ac]
mov dword [eax], edx
lea edx, [esp + 0x8bc]
mov byte [eax + 4], cl
push edx
lea eax, [esp + 0xa8]
push eax
call fcn.00426830
add esp, 8
test eax, eax
jne 0x407cec
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407c61
lea eax, [esp + 0xa4]
mov esi, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407c80
lea edi, [esp + 0x1b8]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407c95
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0
mov ecx, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xdc8]
push ecx
push 0
push 1
push 0
lea edx, [esp + 0x1d4]
push edx
call ebx
test eax, eax
jne 0x407ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00403e60
jmp 0x407cec
mov dword [esp + 0x34], 1
lea eax, [esp + 0x78]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407b91
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [0x44c9d4]
xor edx, edx
cmp eax, 0x5a
setge dl
push 0
sub edx, 1
and edx, 0xa
add eax, edx
push eax
mov dword [0x44c9d4], eax
mov eax, dword [ebx + 0x2a50]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, ebx
call fcn.00411013
lea eax, [ebp - 0x10]
mov byte [esp + 0xed0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d76
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 + 0xed0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d9e
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 + 0xed0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dc6
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 + 0xed0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dee
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 dword [esp + 0xed0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
jmp 0x407eeb
lea eax, [ebp - 0x10]
mov byte [esp + 0xed0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e46
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 + 0xed0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e6e
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 + 0xed0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e96
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 + 0xed0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ebe
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 dword [esp + 0xed0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xec8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xeb0]
xor ecx, esp
call fcn.00426009
add esp, 0xec0
ret