Function at 0x42d040
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4904b3
push eax
mov dword fs:[0], esp
sub esp, 0x544
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0044bde0
test eax, eax
je 0x42d0fb
push 0
lea eax, [esp + 0x54]
push str.CINIFile::GetDefinedDeviceIDS_n
push eax
call fcn.00471c30
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x250]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x250]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x250]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
mov eax, dword [0x4b538c]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x55c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
push str..INI
lea ecx, [esp + 0x20]
mov byte [esp + 0x560], 2
call fcn.004822f6
mov esi, eax
lea ecx, [ebp + 0x13c8]
mov byte [esp + 0x55c], 3
push ecx
lea ecx, [esp + 0x2c]
call fcn.004822f6
push esi
lea edx, [esp + 0x30]
mov bl, 4
push eax
push edx
mov byte [esp + 0x568], bl
call fcn.0048246b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x560], 5
call fcn.00482375
lea ecx, [esp + 0x2c]
mov byte [esp + 0x55c], bl
call fcn.00482288
lea ecx, [esp + 0x28]
mov byte [esp + 0x55c], 3
call fcn.00482288
lea ecx, [esp + 0x1c]
mov byte [esp + 0x55c], 2
call fcn.00482288
push 0xa
lea ecx, [esp + 0x34]
call fcn.00481a49
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x560], 6
call fcn.00401570
mov eax, dword [esp + 0x34]
mov bl, 7
test eax, eax
mov byte [esp + 0x55c], bl
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], eax
je 0x42d30d
mov edi, dword [esp + 0x564]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004014e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x560], 8
call fcn.00482375
lea ecx, [esp + 0x1c]
mov byte [esp + 0x55c], bl
call fcn.00482288
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0042b640
test eax, eax
je 0x42d2bd
xor esi, esi
mov eax, esi
lea ecx, [esp + 0x20]
push eax
push str.DEVICE
push str._s_d
push ecx
inc esi
call fcn.004815e6
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x450]
push edx
push str.DEVICEID
push eax
push ecx
mov ecx, ebp
call fcn.00446ac0
test eax, eax
je 0x42d2aa
lea edx, [esp + 0x450]
lea ecx, [esp + 0x14]
push edx
call fcn.004823c5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42d232
lea ecx, [esp + 0x14]
call fcn.0048273e
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00481bc9
mov dword [esp + 0x18], 1
jmp 0x42d232
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42d2cb
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42d1e7
jmp 0x42d30d
mov ecx, dword [esp + 0x568]
lea eax, [esp + 0x10]
push eax
call fcn.00482375
call fcn.0044bde0
test eax, eax
je 0x42d30d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
push str.pcsINIFileName___s_n
push edx
call fcn.00471c30
add esp, 0xc
lea eax, [esp + 0x50]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bde0
test eax, eax
je 0x42d3b0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x350]
push ecx
push str.CINIFile::GetDefinedDeviceIDS_:_bRetVal___d_n
push edx
call fcn.00471c30
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x350]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
lea ecx, [esp + 0x30]
mov byte [esp + 0x55c], 2
call fcn.00481abd
lea ecx, [esp + 0x14]
mov byte [esp + 0x55c], 1
call fcn.00482288
lea ecx, [esp + 0x20]
mov byte [esp + 0x55c], 0
call fcn.00482288
lea ecx, [esp + 0x10]
mov dword [esp + 0x55c], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x554]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x550
ret 8