Function at 0x4010f5
Capabilities:
Delete file
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
jmp 0x403610
sub esp, 0xc04
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0xc00], eax
push esi
push edi
xor edi, edi
push 0xfb
lea eax, [esp + 0x510]
push edi
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0xff
mov dword [esp + 0x2c], 1
mov dword [esp + 0x514], 0x666e70
call fcn.004068a0
add esp, 0xc
push 0xff
lea ecx, [esp + 0x80c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x808]
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403680
mov edx, dword [str.INF]
mov cl, byte [0x434dd0]
mov dword [eax], edx
mov byte [eax + 4], cl
mov eax, dword [esp + 0xc10]
lea edx, [esp + 0xb08]
sub edx, eax
jmp 0x4036b0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4036b0
push 0x9c
lea edx, [esp + 0x30]
push edi
push edx
call fcn.004068a0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x9c
call esi
test eax, eax
jne 0x403712
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x94
call esi
test eax, eax
jne 0x403712
pop edi
pop esi
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.00406884
add esp, 0xc04
ret
mov edx, dword [esp + 0x3c]
push ebx
push ebp
push edx
push str.PlatformId__0x_x
push 0x43bba0
call fcn.0040103c
mov eax, dword [esp + 0x44]
push eax
push str.MajorVersion___d
push 0x43bba0
call fcn.0040103c
mov ecx, dword [esp + 0x54]
push ecx
push str.MinorVersion____d
push 0x43bba0
call fcn.0040103c
mov eax, dword [esp + 0x68]
add esp, 0x24
sub eax, 1
je 0x404203
sub eax, 1
jne 0x404649
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push edi
push str.SYSTEM
push 0x80000002
call ebp
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x403cbc
mov dword [esp + 0x18], edi
jmp 0x4037a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0xff
lea eax, [esp + 0x714]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
jne 0x403c9a
lea eax, [esp + 0x710]
push eax
call fcn.00406ba4
push eax
call fcn.00406b20
push str.ControlSet
mov esi, eax
call fcn.00406ba4
push eax
call fcn.00406b20
push eax
push esi
call fcn.00406200
add esp, 0x18
test eax, eax
je 0x403c9a
push 0xff
lea ecx, [esp + 0x314]
push edi
push ecx
mov dword [esp + 0x1c], edi
call fcn.004068a0
mov edx, dword [str.SYSTEM]
mov ax, word [0x434d80]
mov cl, byte [0x434d82]
lea edi, [esp + 0x31c]
add esp, 0xc
mov dword [esp + 0x310], edx
mov word [esp + 0x314], ax
mov byte [esp + 0x316], cl
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403850
mov dx, word [0x434d68]
lea eax, [esp + 0x710]
mov word [edi], dx
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403870
lea edi, [esp + 0x310]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403885
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x310]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4038b0
mov ecx, 0xd
mov esi, str.ControlClass4D36E96C_E325_11CE_BFC1_08002BE10318
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x31c]
push ecx
push 0x80000002
movsw word es:[edi], word [esi]
call ebp
test eax, eax
jne 0x403c7d
mov dword [esp + 0x24], eax
nop
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0xff
lea edx, [esp + 0xa14]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
jne 0x403c70
push 0xff
push eax
lea edx, [esp + 0x618]
push edx
mov dword [esp + 0x2c], eax
call fcn.004068a0
add esp, 0xc
xor eax, eax
jmp 0x403940
mov cl, byte [esp + eax + 0x310]
mov byte [esp + eax + 0x610], cl
add eax, 1
test cl, cl
jne 0x403940
lea edi, [esp + 0x610]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403960
mov ax, word [0x434d68]
mov word [edi], ax
lea eax, [esp + 0xa10]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403980
lea edi, [esp + 0x610]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403995
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x61c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.MatchingDeviceId
push eax
call ebx
test eax, eax
mov dword [esp + 0x14], 0xff
jne 0x403c65
lea ecx, [esp + 0x910]
push ecx
call fcn.00406ba4
push eax
call fcn.00406b20
lea edx, [esp + 0xb18]
push edx
mov esi, eax
call fcn.00406ba4
push eax
call fcn.00406b20
push eax
push esi
call fcn.00406200
add esp, 0x18
test eax, eax
je 0x403c65
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.InfPath
push eax
call ebx
test eax, eax
mov dword [esp + 0x14], 0xff
jne 0x403c65
lea eax, [esp + 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403a70
sub eax, edx
mov ebp, eax
xor eax, eax
nop
mov cl, byte [esp + eax + 0x810]
mov byte [esp + eax + 0x210], cl
add eax, 1
test cl, cl
jne 0x403a80
lea edi, [esp + 0x210]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403aa0
mov cx, word [0x434d68]
lea eax, [esp + 0x210]
mov word [edi], cx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ac0
sub eax, edx
mov esi, eax
xor eax, eax
test ebp, ebp
jle 0x403aee
push ebp
lea edx, [esp + 0x414]
lea eax, [esp + esi + 0x214]
push edx
push eax
call fcn.00407090
add esp, 0xc
mov eax, ebp
add ebp, esi
cmp ebp, 0xff
jg 0x403b02
add eax, esi
mov byte [esp + eax + 0x210], 0
lea eax, [esp + 0x210]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403b10
sub eax, edx
mov esi, eax
lea eax, [esp + 0x210]
push eax
push str.Find_OEM_file___s
push 0x43bba0
call fcn.0040103c
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0xc
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x214]
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x403bb5
push 0x20
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x403bb5
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x214]
push edx
call fcn.004010af
add esp, 8
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403bb5
lea ecx, [esp + 0x210]
push ecx
push str.Delete_File__s_failed__
push 0x43bba0
call fcn.0040103c
add esp, 0xc
mov ecx, 0x43bba0
call fcn.00401032
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
mov eax, dword [esp + 0x510]
mov dl, byte [esp + 0x512]
mov byte [esp + esi + 0x20d], al
mov byte [esp + esi + 0x20e], ah
lea eax, [esp + 0x210]
push eax
push str.Find_PNF_file___s
push 0x43bba0
mov byte [esp + esi + 0x21b], dl
call fcn.0040103c
add esp, 0xc
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x214]
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x403c5e
push 0x20
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x403c5e
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403c5e
lea edx, [esp + 0x210]
push edx
push str.Delete_File__s_failed__
push 0x43bba0
call fcn.0040103c
add esp, 0xc
mov ecx, 0x43bba0
call fcn.00401032
push esi
call edi
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x24], 1
test ebp, ebp
je 0x4038f0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
add dword [esp + 0x18], 1
test edi, edi
je 0x4037a0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
xor edi, edi
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push edi
push str.SYSTEM
push 0x80000002
call ebp
test eax, eax
jne 0x404649
mov dword [esp + 0x18], edi
nop
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0xff
lea ecx, [esp + 0x714]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
jne 0x4041ec
lea ecx, [esp + 0x710]
push ecx
call fcn.00406ba4
push eax
call fcn.00406b20
push str.ControlSet
mov esi, eax
call fcn.00406ba4
push eax
call fcn.00406b20
push eax
push esi
call fcn.00406200
add esp, 0x18
test eax, eax
je 0x4041ec
push 0xff
lea edx, [esp + 0x314]
push edi
push edx
mov dword [esp + 0x2c], edi
call fcn.004068a0
mov eax, dword [str.SYSTEM]
mov cx, word [0x434d80]
mov dl, byte [0x434d82]
lea edi, [esp + 0x31c]
add esp, 0xc
mov dword [esp + 0x310], eax
mov word [esp + 0x314], cx
mov byte [esp + 0x316], dl
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403d90
mov ax, word [0x434d68]
mov word [edi], ax
lea eax, [esp + 0x710]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403db0
lea edi, [esp + 0x310]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403dc5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x310]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403df0
mov ecx, 0xd
mov esi, str.ControlClass6BDD1FC6_810F_11D0_BEC7_08002BE2092F
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x31c]
push edx
push 0x80000002
movsw word es:[edi], word [esi]
call ebp
test eax, eax
jne 0x4041cf
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x24], eax
jmp 0x403e40
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0xff
lea eax, [esp + 0xa14]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
test ebx, ebx
jne 0x4041c2
push 0xff
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x618]
push eax
call fcn.004068a0
add esp, 0xc
xor eax, eax
jmp 0x403e90
mov cl, byte [esp + eax + 0x310]
mov byte [esp + eax + 0x610], cl
add eax, 1
test cl, cl
jne 0x403e90
lea edi, [esp + 0x610]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403eb0
mov cx, word [0x434d68]
lea eax, [esp + 0xa10]
mov word [edi], cx
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ed0
lea edi, [esp + 0x610]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403ee5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 0xf003f
mov ecx, eax
push 0
lea eax, [esp + 0x61c]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x914]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push str.MatchingDeviceId
push ecx
call ebp
test eax, eax
mov dword [esp + 0x14], 0xff
jne 0x4041b7
lea edx, [esp + 0x910]
push edx
call fcn.00406ba4
push eax
call fcn.00406b20
mov esi, eax
lea eax, [esp + 0xb18]
push eax
call fcn.00406ba4
push eax
call fcn.00406b20
push eax
push esi
call fcn.00406200
add esp, 0x18
test eax, eax
je 0x4041b7
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x414]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push str.InfPath
push ecx
call ebp
test eax, eax
mov dword [esp + 0x14], 0xff
jne 0x4041b7
lea eax, [esp + 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403fc0
sub eax, edx
mov ebp, eax
xor eax, eax
nop
mov cl, byte [esp + eax + 0x810]
mov byte [esp + eax + 0x210], cl
add eax, 1
test cl, cl
jne 0x403fd0
lea edi, [esp + 0x210]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403ff0
mov dx, word [0x434d68]
lea eax, [esp + 0x210]
mov word [edi], dx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404010
sub eax, edx
mov esi, eax
xor eax, eax
test ebp, ebp
jle 0x40403e
push ebp
lea ecx, [esp + 0x414]
lea eax, [esp + esi + 0x214]
push ecx
push eax
call fcn.00407090
add esp, 0xc
mov eax, ebp
add ebp, esi
cmp ebp, 0xff
jg 0x404052
add eax, esi
mov byte [esp + eax + 0x210], 0
lea eax, [esp + 0x210]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404060
sub eax, edx
lea edx, [esp + 0x210]
push edx
push str.Find_OEM_file___s
push 0x43bba0
mov esi, eax
call fcn.0040103c
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0xc
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x214]
push ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x404105
push 0x20
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x404105
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x214]
push ecx
call fcn.004010af
add esp, 8
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404105
lea eax, [esp + 0x210]
push eax
push str.Delete_File__s_failed__
push 0x43bba0
call fcn.0040103c
add esp, 0xc
mov ecx, 0x43bba0
call fcn.00401032
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
mov eax, dword [esp + 0x510]
mov cl, byte [esp + 0x512]
lea edx, [esp + 0x210]
push edx
push str.Find_PNF_file___s
push 0x43bba0
mov byte [esp + esi + 0x219], al
mov byte [esp + esi + 0x21a], ah
mov byte [esp + esi + 0x21b], cl
call fcn.0040103c
add esp, 0xc
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x214]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4041ae
push 0x20
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4041ae
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4041ae
lea ecx, [esp + 0x210]
push ecx
push str.Delete_File__s_failed__
push 0x43bba0
call fcn.0040103c
add esp, 0xc
mov ecx, 0x43bba0
call fcn.00401032
push esi
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x24], 1
test ebx, ebx
je 0x403e40
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0
add dword [esp + 0x18], 1
test edi, edi
je 0x403ce0
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x404643
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push edi
push str.SystemCurrentControlSetServicesClassImage
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x18], edi
jmp 0x404230
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0xff
lea eax, [esp + 0x714]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
jne 0x404631
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesClassImage
lea edi, [esp + 0x310]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x310]
mov dword [esp + 0x10], eax
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404280
mov ax, word [0x434d68]
mov word [edi], ax
lea eax, [esp + 0x710]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4042a0
lea edi, [esp + 0x310]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4042b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x31c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.MatchingDeviceId
push eax
call ebp
test eax, eax
mov dword [esp + 0x14], 0xff
jne 0x404626
lea ecx, [esp + 0xb10]
push ecx
call fcn.00406b20
push eax
lea edx, [esp + 0x918]
push edx
call fcn.00406458
add esp, 0xc
test eax, eax
je 0x404626
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.InfPath
push eax
call ebp
test eax, eax
mov dword [esp + 0x14], 0xff
jne 0x404626
lea eax, [esp + 0x410]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404380
sub eax, edx
mov ebp, eax
xor eax, eax
nop
mov cl, byte [esp + eax + 0x810]
mov byte [esp + eax + 0x210], cl
add eax, 1
test cl, cl
jne 0x404390
lea edi, [esp + 0x210]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4043b0
mov cx, word [0x434d68]
lea eax, [esp + 0x210]
mov word [edi], cx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043d0
sub eax, edx
mov esi, eax
xor eax, eax
test ebp, ebp
jle 0x4043fe
push ebp
lea edx, [esp + 0x414]
lea eax, [esp + esi + 0x214]
push edx
push eax
call fcn.00407090
add esp, 0xc
mov eax, ebp
lea ecx, [esi + ebp]
cmp ecx, 0xff
jg 0x404413
add esi, eax
mov byte [esp + esi + 0x210], 0
lea esi, [esp + 0x210]
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x404420
lea eax, [esp + 0xd0]
sub esi, ecx
push eax
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40446b
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x214]
push eax
call fcn.004010af
add esp, 8
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x510]
mov dl, byte [esp + 0x512]
lea ebp, [esp + 0x210]
lea ebx, [esp + 0x210]
mov byte [esi + ebp - 3], al
mov byte [ebx + esi - 2], ah
sub ebp, 3
sub ebx, 2
lea eax, [esp + 0x210]
sub eax, 1
mov dword [esp + 0x30], eax
mov byte [eax + esi], dl
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4044d8
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x410]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4044f0
sub eax, edx
mov edi, eax
xor eax, eax
nop
mov cl, byte [esp + eax + 0x810]
mov byte [esp + eax + 0x210], cl
add eax, 1
test cl, cl
jne 0x404500
lea eax, [esp + 0x210]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x404520
mov ecx, dword [str.OTHER_]
mov edx, dword [0x434c3c]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404545
sub eax, edx
mov esi, eax
xor eax, eax
test edi, edi
jle 0x404573
push edi
lea ecx, [esp + 0x414]
lea eax, [esp + esi + 0x214]
push ecx
push eax
call fcn.00407090
add esp, 0xc
mov eax, edi
lea ecx, [esi + edi]
cmp ecx, 0xff
jg 0x404588
add esi, eax
mov byte [esp + esi + 0x210], 0
lea esi, [esp + 0x210]
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x404592
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x214]
push eax
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4045c8
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x510]
mov dl, byte [esp + 0x512]
mov byte [esi + ebp], al
mov byte [ebx + esi], ah
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xd0]
mov byte [eax + esi], dl
push ecx
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404615
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x18], 1
test ebx, ebx
je 0x404230
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc10]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00406884
add esp, 0xc04
ret