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

Disassembly:
push 0xffffffffffffffff
push 0x4385c2
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.004048f0
xor edi, edi
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x48]
mov dword [esp + 0xed4], edi
call fcn.004048f0
push 0x1ff
lea eax, [esp + 0x1bd]
push edi
push eax
mov byte [esp + 0xedc], 1
mov byte [esp + 0x1c4], 0
call fcn.00426e70
push 0x1ff
lea ecx, [esp + 0xbcd]
push edi
push ecx
mov byte [esp + 0xbd4], 0
call fcn.00426e70
push 0x1ff
lea edx, [esp + 0x8d9]
push edi
push edx
mov byte [esp + 0x8e0], 0
call fcn.00426e70
add esp, 0x24
push 0x43b903
lea ecx, [esp + 0x54]
call fcn.004048f0
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.0041557a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406c12
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.0041557a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406c44
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.00405a40
push 0x43bef4
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xedc], 5
call fcn.00402cd0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x4cc]
push 0x200
push eax
call fcn.00427371
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 0x406cb9
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 0x406ce0
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.00426e70
add esp, 0xc
xor eax, eax
jmp 0x406d00
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x406d00
mov eax, dword [0x44c9d8]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406d20
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406d35
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 0x406d60
mov edx, dword [0x43bfc8]
mov cx, word [0x43bfcc]
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 0x407b42
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 0x4076a6
jmp 0x406de0
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.00410c84
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x7c0]
push edx
call fcn.0042685a
add esp, 8
test eax, eax
je 0x407678
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 0x406e60
xor eax, eax
jmp 0x406e80
mov cl, byte [esp + eax + 0x7bc]
mov byte [esp + eax + 0xabc], cl
add eax, edi
test cl, cl
jne 0x406e80
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.00410c84
push 0x140
lea eax, [esp + 0x7c]
push 0
push eax
mov byte [esp + 0x6f9], 0
call fcn.00426e70
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 0x406f00
mov eax, dword [0x44c9d8]
mov edx, eax
jmp 0x406f20
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406f20
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406f35
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 0x406f60
mov ecx, dword [0x43bfc8]
mov dx, word [0x43bfcc]
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 0x40715f
jmp 0x406fa0
xor eax, eax
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x406fa2
lea eax, [esp + 0xa4]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406fc0
lea edi, [esp + 0x1b8]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406fd5
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 0x407144
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea eax, [esp + 0x24]
push eax
push 0
push 0x43bf4c
push esi
call edi
test eax, eax
je 0x40713d
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 0x40713d
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 0x407074
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x40714b
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x3c0]
push eax
push esi
call edi
test eax, eax
je 0x40713d
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
jmp 0x4070a0
push 0
push 0x104
lea ecx, [esp + 0x3c0]
push ecx
push 2
lea edx, [esp + 0x34]
push edx
call edi
test eax, eax
je 0x407109
lea eax, [esp + 0x3b8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4070c6
sub eax, edx
push eax
lea eax, [esp + 0x3bc]
push eax
lea ecx, [esp + 0x20]
call fcn.00402a70
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jl 0x407109
lea ecx, [esp + 0x6bc]
push ecx
push ebp
call fcn.0042685a
add esp, 8
test eax, eax
je 0x407109
sub eax, ebp
cmp eax, 0xffffffff
jne 0x40711d
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x4070a0
jmp 0x40713d
xor eax, eax
nop
mov cl, byte [esp + eax + 0x1b8]
mov byte [esp + eax + 0xbbc], cl
add eax, 1
test cl, cl
jne 0x407120
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
jne 0x40715f
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406fa0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1c], 0
jne 0x4075c9
push 0x140
lea edx, [esp + 0x7c]
push 0
push edx
mov byte [esp + 0x6e9], 0
call fcn.00426e70
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 0x407190
mov eax, dword [0x44c9d8]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4071b0
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4071c5
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 0x4071f0
mov ecx, dword [0x43bfc8]
mov dx, word [0x43bfcc]
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 0x4073ff
jmp 0x407230
xor eax, eax
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407232
lea eax, [esp + 0xa4]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407250
lea edi, [esp + 0x1b8]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407265
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 0x4073e4
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea eax, [esp + 0x24]
push eax
push 0
push 0x43bf4c
push esi
call edi
test eax, eax
je 0x4073dd
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 0x4073dd
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 0x407304
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x4073eb
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x3c0]
push eax
push esi
call edi
test eax, eax
je 0x4073dd
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
jmp 0x407330
push 0
push 0x104
lea ecx, [esp + 0x3c0]
push ecx
push 2
lea edx, [esp + 0x34]
push edx
call edi
test eax, eax
je 0x4073a2
lea eax, [esp + 0x3b8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004034e0
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jl 0x4073a2
lea ecx, [esp + 0x6bc]
push ecx
push ebp
call fcn.0042685a
add esp, 8
test eax, eax
je 0x4073a2
sub eax, ebp
cmp eax, 0xffffffff
je 0x4073a2
cmp dword [ebp - 0xc], 0
jl 0x4073ba
push str.SUBSYS
push ebp
call fcn.0042685a
add esp, 8
test eax, eax
je 0x4073ba
sub eax, ebp
cmp eax, 0xffffffff
je 0x4073ba
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x407330
jmp 0x4073dd
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 0x4073c0
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x1c], 0
jne 0x4073ff
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407230
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1c], 0
jne 0x4075c9
xor eax, eax
jmp 0x407420
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407420
push 0x43c050
lea edx, [esp + 0x58]
push 0x44c9d8
push edx
call fcn.00402cd0
mov eax, dword [eax]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407450
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 0x407467
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 0x40749f
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 0x407669
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea edx, [esp + 0x24]
push edx
push 0
push 0x43bf4c
push esi
call edi
test eax, eax
je 0x4075b6
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 0x4075b6
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 0x407528
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x407678
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x3c0]
push edx
push esi
call edi
test eax, eax
je 0x4075b6
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
jmp 0x407550
push 0
push 0x104
lea eax, [esp + 0x3c0]
push eax
push 2
lea ecx, [esp + 0x34]
push ecx
call ebx
test eax, eax
je 0x4075a8
lea edx, [esp + 0x3b8]
push edx
lea ecx, [esp + 0x1c]
call fcn.004034e0
mov eax, dword [esp + 0x44]
test eax, eax
mov ebp, dword [esp + 0x18]
je 0x4075a8
cmp dword [ebp - 0xc], 0
jl 0x4075a8
push eax
push ebp
call fcn.0042685a
add esp, 8
test eax, eax
je 0x4075a8
sub eax, ebp
cmp eax, 0xffffffff
jne 0x407637
lea eax, [esp + 0x24]
push eax
mov ecx, eax
push ecx
call edi
test eax, eax
jne 0x407550
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
test edi, edi
je 0x407669
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.00410c84
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 0x40765f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00403c50
jmp 0x407678
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 0x407640
mov edi, 1
jmp 0x4075ba
mov dword [esp + 0x34], 1
jmp 0x407678
cmp dword [esp + 0x48], 0
jne 0x407678
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 0x406de0
cmp dword [esp + 0x40], eax
jne 0x407a2b
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.00410c84
push 0x140
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.00426e70
add esp, 0xc
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
mov eax, dword [0x44c9d8]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407720
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407735
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 0x407760
mov ecx, dword [str.Rt.inf]
mov dx, word [0x43c04c]
mov dword [eax], ecx
mov cl, byte [0x43c04e]
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 0x4077ee
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 0x4077e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00403c50
jmp 0x407a2f
mov dword [esp + 0x34], 1
jmp 0x407a2f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x140
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.00426e70
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 0x407810
mov eax, dword [0x44c9d8]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407830
lea edi, [esp + 0x1b8]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407845
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 0x407870
mov ecx, dword [0x43bfc8]
mov dx, word [0x43bfcc]
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 0x407a20
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
mov eax, dword [0x44c9d8]
lea edx, [esp + 0x8bc]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x4078c0
lea eax, [esp + 0x8bc]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4078d6
mov edx, dword [str.Rt.inf]
mov cx, word [0x43c04c]
mov dword [eax], edx
mov dl, byte [0x43c04e]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x8bc]
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.00426540
add esp, 8
test eax, eax
jne 0x407a0c
mov eax, dword [0x44c9d8]
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 0x407930
lea eax, [esp + 0x8bc]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407946
mov edx, dword [0x43c050]
mov cl, byte [0x43c054]
mov dword [eax], edx
lea edx, [esp + 0x8bc]
mov byte [eax + 4], cl
push edx
lea eax, [esp + 0xa8]
push eax
call fcn.00426540
add esp, 8
test eax, eax
jne 0x407a0c
mov cl, byte [esp + eax + 0x4bc]
mov byte [esp + eax + 0x1b8], cl
add eax, 1
test cl, cl
jne 0x407981
lea eax, [esp + 0xa4]
mov esi, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4079a0
lea edi, [esp + 0x1b8]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4079b5
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 0x407a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00403c50
jmp 0x407a0c
mov dword [esp + 0x34], 1
lea eax, [esp + 0x78]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4078b1
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.00410c84
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 0x407a96
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 0x407abe
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 0x407ae6
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 0x407b0e
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 0x407b39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
jmp 0x407c0b
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 0x407b66
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 0x407b8e
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 0x407bb6
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 0x407bde
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 0x407c09
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.00425d1a
add esp, 0xec0
ret