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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push edi
push 0x400
push 0x5681a0
call esi
push 0x400
push 0x5681d0
call esi
push 0x400
push 0x5681b8
call esi
push 0x400
push 0x5681e8
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.004e8ba0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.004e56ec
add eax, 2
mov edx, 0x56d5b8
add esp, 8
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a28b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x104
push 0x56d3b0
mov dword [0x56d7c0], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, 0x56d3b0
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a28e2
mov ecx, dword [str.DebugSMR]
mov edx, dword [0x523014]
mov dword [eax], ecx
mov ecx, dword [0x523018]
mov dword [eax + 4], edx
mov edx, dword [0x52301c]
mov dword [eax + 8], ecx
mov ecx, dword [0x523020]
mov dword [eax + 0xc], edx
mov dx, word [0x523024]
mov dword [eax + 0x10], ecx
push 0x56d3b0
mov word [eax + 0x14], dx
call fcn.004e51cd
add esp, 4
cmp eax, 0xffffffff
jne 0x4a2944
push 0x56d3b0
call fcn.004e519b
add esp, 4
mov edi, 0x56d3b0
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a2950
mov eax, dword [0x51c6e8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov dword [edi], eax
mov word [ebp - 0x218], cx
call fcn.004e8ba0
push 0
lea esi, [ebp - 0x218]
call fcn.004b79a0
mov edi, esi
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a2993
mov ecx, 6
mov esi, str.Presto_7.ini
rep movsd dword es:[edi], dword [esi]
push str.wmcSystem.exe
push 0x56d5b8
movsw word es:[edi], word [esi]
call fcn.004f2bd4
add esp, 8
test eax, eax
je 0x4a2b00
push 0x208
call fcn.004e5420
push 0x208
mov esi, eax
push 0
push esi
call fcn.004e8ba0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push 0x56d3b0
push str._sSmrDebug.txt
push esi
call ebx
add esp, 0x1c
push 0
push 0x8000080
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4a2af2
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.C:Temp]
mov word [eax + 0x56d3b0], cx
add eax, 2
test cx, cx
jne 0x4a2a20
push 0x56d3b0
call fcn.004e51cd
add esp, 4
cmp eax, 0xffffffff
jne 0x4a2a55
push 0x56d3b0
call fcn.004e519b
add esp, 4
mov eax, 0x56d3b0
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a2a60
mov ecx, dword [str.SMR]
mov edx, dword [0x523084]
mov dword [eax], ecx
mov cx, word [0x523088]
mov dword [eax + 4], edx
push 0x56d3b0
mov word [eax + 8], cx
call fcn.004e51cd
add esp, 4
cmp eax, 0xffffffff
jne 0x4a2aa7
push 0x56d3b0
call fcn.004e519b
add esp, 4
mov edi, 0x56d3b0
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a2ab0
mov edx, dword [0x51c6e8]
push 0x56d3b0
push str._sSmrDebug.txt
push esi
mov dword [edi], edx
call ebx
add esp, 0xc
push 0
push 0x8000080
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4a2b5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004e60ed
add esp, 8
test eax, eax
jne 0x4a2b5a
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x218]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x51c514
push str.OutputEvent
xor edx, edx
push str.Debug
mov word [ebp - 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xc], 0x31
jne 0x4a2b5a
mov dword [0x56d7c4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret