Function at 0x4061c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x424118
mov eax, dword fs:[0]
push eax
mov eax, 0x1414
call fcn.00411020
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x1410], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ea04]
xor eax, esp
push eax
lea eax, [esp + 0x1428]
mov dword fs:[0], eax
lea ecx, [esp + 0x17]
call fcn.00407020
xor ebx, ebx
mov dword [esp + 0x1430], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x1438]
lea eax, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x1438], 1
call fcn.00404fb0
add esp, 8
test eax, eax
jne 0x40628f
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x406268
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00403180
mov eax, dword [esp + 0x30]
push eax
call fcn.00407818
add esp, 0x14
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x17]
mov dword [esp + 0x1430], 0xffffffff
call fcn.00401000
xor eax, eax
jmp 0x4069db
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x4062b2
mov ecx, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4062bb
call fcn.00411175
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x9c]
push esi
push edx
call fcn.00403af0
add esp, 8
cmp dword [esp + 0xb0], ebx
mov byte [esp + 0x1430], 2
jne 0x40631f
cmp dword [esp + 0xb4], 0x10
jb 0x4062f7
mov eax, dword [esp + 0xa0]
push eax
call fcn.00407818
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], 0
call fcn.00404930
jmp 0x406274
push ebx
lea ecx, [esp + 0x20]
call fcn.00401aa0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xa4]
push ecx
mov ecx, eax
call fcn.00402780
push ebx
lea ecx, [esp + 0x20]
call fcn.00401aa0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x406354
mov eax, dword [eax + 4]
jmp 0x406357
add eax, 4
lea edx, [esp + 0x44]
push edx
push 2
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406379
cmp dword [esp + 0xb4], edi
jmp 0x4062e5
push 0x800
lea ecx, [esp + 0x828]
push ebx
push ecx
call fcn.00410c60
push 0x40
lea edx, [esp + 0x1f4]
push ebx
push edx
call fcn.00410c60
push 0x400
lea eax, [esp + 0x440]
push ebx
push eax
call fcn.00410c60
add esp, 0x24
push 1
lea ecx, [esp + 0x20]
call fcn.00401aa0
cmp dword [eax + 0x18], edi
jb 0x4063c7
mov eax, dword [eax + 4]
jmp 0x4063ca
add eax, 4
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
lea ecx, [esp + 0x2c]
push ecx
push str.BeginPrompt
push eax
push esi
call ebp
push 1
lea ecx, [esp + 0x20]
call fcn.00401aa0
cmp dword [eax + 0x18], edi
jb 0x4063f3
mov eax, dword [eax + 4]
jmp 0x4063f6
add eax, 4
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
lea edx, [esp + 0x18]
push edx
push 0x100
lea ecx, [esp + 0xec]
push ecx
push str.BeginPrompt
push eax
push esi
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
push str.Prompt
lea ecx, [esp + 0xec]
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push edx
push 0x800
lea eax, [esp + 0x82c]
push eax
push str.Prompt
lea ecx, [esp + 0xf4]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
push str.ButtonType
lea ecx, [esp + 0xec]
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push edx
push 0x40
lea eax, [esp + 0x1ec]
push eax
push str.ButtonType
lea ecx, [esp + 0xf4]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
push str.Title
lea ecx, [esp + 0xec]
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x42c]
push eax
push str.Title
lea ecx, [esp + 0xf4]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
call edi
push str.YESNO
lea ecx, [esp + 0x4c]
call fcn.00402dc0
mov ebx, eax
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1434], 3
call fcn.00402dc0
mov byte [esp + 0x1430], 4
push ebx
push eax
call fcn.00402140
add esp, 8
cmp dword [esp + 0xd0], 0x10
mov bl, al
jb 0x406527
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00407818
add esp, 4
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
mov byte [esp + 0x1430], 2
jb 0x406561
mov edx, dword [esp + 0x4c]
push edx
call fcn.00407818
add esp, 4
test bl, bl
je 0x406958
push 4
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x82c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor edx, edx
cmp eax, 6
sete dl
mov eax, edx
test eax, eax
je 0x406958
push str._132
lea ecx, [esp + 0x68]
call fcn.00402dc0
push eax
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1438], 5
call fcn.00401aa0
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00402f60
add esp, 0xc
mov ebx, eax
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x1434], 6
call fcn.00401aa0
push eax
lea ecx, [esp + 0xbc]
push ebx
push ecx
call fcn.00402f60
add esp, 0xc
lea ecx, [esp + 0x80]
call fcn.004021f0
lea ecx, [esp + 0x64]
mov byte [esp + 0x1430], 9
call fcn.004021f0
call fcn.004013a0
lea edx, [esp + 0xb8]
push edx
call fcn.00403200
add esp, 4
test eax, eax
jne 0x40664b
lea ecx, [esp + 0xb8]
call fcn.004021f0
lea ecx, [esp + 0x9c]
call fcn.004021f0
lea ecx, [esp + 0x1c]
call fcn.00404930
jmp 0x406274
lea eax, [esp + 0x2c]
push eax
push str.ClassGUID
push str.Version
push esi
call ebp
lea ecx, [esp + 0x18]
push ecx
push 0x100
lea edx, [esp + 0x22c]
push edx
push str.ClassGUID
push str.Version
push esi
lea eax, [esp + 0x44]
push eax
call edi
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00403790
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
add esp, 8
mov dword [esp + 0xd8], ecx
lea ecx, [esp + 0x2c]
push ecx
push str.Ricoh.DeviceDesc
push str.Strings
push esi
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], eax
call ebp
lea edx, [esp + 0x18]
push edx
push 0x100
lea eax, [esp + 0x32c]
push eax
push str.Ricoh.DeviceDesc
push str.Strings
push esi
lea ecx, [esp + 0x44]
push ecx
call edi
mov ecx, dword [esp + 0xd8]
lea edx, [esp + 0x324]
push edx
mov edx, dword [esp + 0xe0]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xf4]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00401440
add esp, 0x14
lea ecx, [esp + 0x17]
call fcn.00407470
push 1
lea ecx, [esp + 0x20]
call fcn.00401aa0
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x406744
mov eax, dword [eax + 4]
jmp 0x406747
add eax, 4
lea edx, [esp + 0x2c]
push edx
push str.DelDirs
push eax
push esi
call ebp
push 1
lea ecx, [esp + 0x20]
call fcn.00401aa0
cmp dword [eax + 0x18], ebx
jb 0x40676a
mov eax, dword [eax + 4]
jmp 0x40676d
add eax, 4
lea ecx, [esp + 0x18]
push ecx
push 0x100
lea edx, [esp + 0xec]
push edx
push str.DelDirs
push eax
push esi
lea eax, [esp + 0x44]
push eax
call edi
lea ecx, [esp + 0xe4]
push ecx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountA]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x3c], eax
jle 0x4067f3
lea edx, [esp + 0x2c]
push edx
push ebx
lea eax, [esp + 0xec]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexA]
lea ecx, [esp + 0x40]
push ecx
push 0x400
lea edx, [esp + 0x102c]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
lea ecx, [esp + 0x1024]
push ecx
call fcn.00402420
add ebx, 1
add esp, 4
cmp ebx, dword [esp + 0x3c]
jl 0x4067a6
mov ebx, 0x10
cmp dword [esp + 0xd0], ebx
jb 0x406811
mov edx, dword [esp + 0xbc]
push edx
call fcn.00407818
add esp, 4
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], 0
mov byte [esp + 0xc0], 0
call fcn.00401aa0
cmp dword [eax + 0x18], ebx
jb 0x406844
mov eax, dword [eax + 4]
jmp 0x406847
add eax, 4
lea ecx, [esp + 0x2c]
push ecx
push str.EndPrompt
push eax
push esi
call ebp
push 1
lea ecx, [esp + 0x20]
call fcn.00401aa0
cmp dword [eax + 0x18], ebx
jb 0x40686a
mov eax, dword [eax + 4]
jmp 0x40686d
add eax, 4
lea edx, [esp + 0x18]
push edx
push 0x100
lea ecx, [esp + 0xec]
push ecx
push str.EndPrompt
push eax
push esi
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
push str.Prompt
lea ecx, [esp + 0xec]
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push edx
push 0x800
lea eax, [esp + 0x82c]
push eax
push str.Prompt
lea ecx, [esp + 0xf4]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
push str.ButtonType
lea ecx, [esp + 0xec]
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push edx
push 0x40
lea eax, [esp + 0x1ec]
push eax
push str.ButtonType
lea ecx, [esp + 0xf4]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x2c]
push eax
push str.Title
lea ecx, [esp + 0xec]
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x42c]
push eax
push str.Title
lea ecx, [esp + 0xf4]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
call edi
push 0
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x82c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [esp + 0xa0]
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jae 0x40697b
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0xb4], esi
jb 0x40699b
mov edx, dword [esp + 0xa0]
push edx
call fcn.00407818
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
call fcn.00404930
lea ecx, [esp + 0x17]
mov dword [esp + 0x1430], 0xffffffff
call fcn.00401000
mov eax, 1
mov ecx, dword [esp + 0x1428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1410]
xor ecx, esp
call fcn.00410f96
add esp, 0x1420
ret 4