Function at 0x402870
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4567e9
mov eax, dword fs:[0]
push eax
mov eax, 0x87b4
call fcn.00441390
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x87b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x87c8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x87d0], 0
call fcn.004306c2
push 0x400
lea eax, [esp + 0x3c8]
push 0
push eax
mov byte [esp + 0x87dc], 1
call fcn.004413c0
push 0x104
lea ecx, [esp + 0x2d0]
push 0
push ecx
call fcn.004413c0
add esp, 0x18
push 0x104
lea edx, [esp + 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], ecx
call fcn.00401440
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], ecx
call fcn.00401440
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x2c0]
sub ecx, 1
cmp byte [eax + ecx], 0x5c
je 0x402956
push 0x45c6ec
lea edx, [esp + 0x2c4]
push edx
call edi
mov eax, dword [esi + 0x14]
add esi, 0x14
cmp dword [eax - 0xc], 0
mov dword [esp + 0x24], esi
jne 0x4029e2
push str.UninstSi.ini
lea eax, [esp + 0x2c4]
push eax
call edi
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4029b4
mov ecx, esi
call fcn.00401440
lea ecx, [esp + 0x2c]
mov byte [esp + 0x87d0], 0
call fcn.00430a6d
mov eax, dword [esp + 0x87d8]
add eax, 0xfffffff0
jmp 0x402c8d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x2c0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4029c5
sub eax, edx
push eax
lea ecx, [esp + 0x2c4]
push ecx
mov ecx, esi
call fcn.00401bc0
jmp 0x402a24
lea edx, [esp + 0x180]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402a1d
mov ecx, esi
call fcn.00401440
lea ecx, [esp + 0x2c]
mov byte [esp + 0x87d0], 0
call fcn.00430a6d
mov eax, dword [esp + 0x87d8]
add eax, 0xfffffff0
jmp 0x402c8d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x7fff
lea ecx, [esp + 0x7c8]
push 0
push ecx
call fcn.004413c0
mov eax, dword [esi]
mov ebp, dword [esp + 0x87e4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
push eax
push 0x7fff
lea edx, [esp + 0x7cc]
push edx
push 0x45c6da
push 0
push ebp
call ebx
test eax, eax
ja 0x402a7d
mov ecx, dword [esp + 0x18]
call fcn.00401440
mov ecx, dword [esp + 0x14]
call fcn.00401440
jmp 0x402c79
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402a97
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x87d0], 2
lea eax, [esp + 0x7c4]
cmp byte [eax], 0
jne 0x402ac4
cmp byte [eax + 1], 0
je 0x402ac9
mov byte [eax], 9
add eax, 1
jmp 0x402ab6
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x7c8]
push 0x45c6d8
push edx
mov dword [esp + 0x28], 0
call fcn.0044129d
add esp, 0xc
test eax, eax
je 0x402b57
mov bl, 3
push eax
lea ecx, [esp + 0x2c]
call fcn.004027b0
push eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x87d8], bl
call fcn.00430be6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x87d0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push 0x45c6d8
push 0
call fcn.0044129d
add esp, 0xc
test eax, eax
jne 0x402af1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x34]
xor esi, esi
test eax, eax
jle 0x402c55
test esi, esi
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
jl 0x402ce1
cmp esi, eax
jge 0x402ce1
mov eax, dword [esp + 0x30]
mov eax, dword [eax + esi*4]
push ecx
push 0x400
lea ecx, [esp + 0x3cc]
push ecx
push 0x45c6da
push eax
push ebp
call ebx
lea eax, [esp + 0x3c4]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402ba3
sub eax, ecx
push eax
lea edx, [esp + 0x3c8]
push edx
lea ecx, [esp + 0x28]
call fcn.00401bc0
mov edi, dword [esp + 0x20]
mov eax, dword [edi - 0xc]
cmp eax, 1
jl 0x402c46
test eax, eax
jl 0x402cd7
cmp byte [edi], 0x3b
je 0x402c46
push str.Delete_Printer_Name
push ebp
call fcn.00440d82
add esp, 8
test eax, eax
jne 0x402c18
lea eax, [esp + 0x3c4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402bf5
mov ecx, dword [esp + 0x18]
sub eax, edx
push eax
lea eax, [esp + 0x3c8]
push eax
call fcn.00401c50
mov ecx, dword [esp + 0x18]
jmp 0x402c3f
push str.Delete_Driver_Name
push ebp
call fcn.00440d82
add esp, 8
test eax, eax
jne 0x402c46
lea ecx, [esp + 0x3c4]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00402580
mov ecx, dword [esp + 0x14]
push 9
call fcn.00401b60
mov eax, dword [esp + 0x34]
add esi, 1
cmp esi, eax
jl 0x402b65
lea eax, [edi - 0x10]
mov byte [esp + 0x87d0], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402c79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x87d0], 0
call fcn.00430a6d
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x87d0], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x87c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x87b0]
xor ecx, esp
call fcn.0044027a
add esp, 0x87c0
ret 4
push 0x80070057
call fcn.00401090
call fcn.00430460
int3