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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x5322a8]
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 0x53b1d8
call esi
push 0x400
push 0x53b208
call esi
push 0x400
push 0x53b1f0
call esi
push 0x400
push 0x53b220
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x436]
push ecx
mov word [ebp - 0x438], ax
call fcn.004e7d90
add esp, 0xc
push 0x104
lea edx, [ebp - 0x438]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x438]
push 0x5c
push eax
call fcn.004e4991
add eax, 2
mov edx, 0x53b9d8
add esp, 8
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a4790
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x104
push 0x53b7d0
mov dword [0x53b64c], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, 0x53b7d0
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a47c2
mov ecx, dword [str.DebugSMR]
mov edx, dword [0x5237e8]
mov dword [eax], ecx
mov ecx, dword [0x5237ec]
mov dword [eax + 4], edx
mov edx, dword [0x5237f0]
mov dword [eax + 8], ecx
mov ecx, dword [0x5237f4]
mov dword [eax + 0xc], edx
mov dx, word [0x5237f8]
mov dword [eax + 0x10], ecx
push 0x53b7d0
mov word [eax + 0x14], dx
call fcn.004e447d
add esp, 4
cmp eax, 0xffffffff
jne 0x4a4824
push 0x53b7d0
call fcn.004e444b
add esp, 4
mov edi, 0x53b7d0
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a4830
mov eax, dword [0x51cf1c]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x22e]
push edx
mov dword [edi], eax
mov word [ebp - 0x230], cx
call fcn.004e7d90
push 0
lea esi, [ebp - 0x230]
call fcn.004a5de0
mov eax, esi
add esp, 0x10
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a4873
mov ecx, dword [str.presto.dbg]
mov edx, dword [0x520a58]
mov dword [eax], ecx
mov ecx, dword [0x520a5c]
mov dword [eax + 4], edx
mov edx, dword [0x520a60]
mov dword [eax + 8], ecx
mov ecx, dword [0x520a64]
mov dword [eax + 0xc], edx
mov dx, word [0x520a68]
push str.wmcSystem.exe
mov dword [eax + 0x10], ecx
push 0x53b9d8
mov word [eax + 0x14], dx
call fcn.004f20d4
add esp, 8
test eax, eax
je 0x4a4a14
push 0x208
call fcn.004e4240
push 0x208
mov esi, eax
push 0
push esi
call fcn.004e7d90
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push 0x53b7d0
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 0x4a4a06
xor eax, eax
jmp 0x4a4930
movzx ecx, word [eax + str.C:Temp]
mov word [eax + 0x53b7d0], cx
add eax, 2
test cx, cx
jne 0x4a4930
push 0x53b7d0
call fcn.004e447d
add esp, 4
cmp eax, 0xffffffff
jne 0x4a4965
push 0x53b7d0
call fcn.004e444b
add esp, 4
mov eax, 0x53b7d0
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a4970
mov ecx, dword [str.SMR]
mov edx, dword [0x52383c]
mov dword [eax], ecx
mov cx, word [0x523840]
mov dword [eax + 4], edx
push 0x53b7d0
mov word [eax + 8], cx
call fcn.004e447d
add esp, 4
cmp eax, 0xffffffff
jne 0x4a49b7
push 0x53b7d0
call fcn.004e444b
add esp, 4
mov edi, 0x53b7d0
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a49c0
mov edx, dword [0x51cf1c]
push 0x53b7d0
push str._sSmrDebug.txt
push esi
mov dword [edi], edx
call ebx
add esp, 0xc
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4a4b66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.004e53ba
add esp, 8
test eax, eax
jne 0x4a4b4b
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x230]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x51cd40
push str.OutputLevel
xor edx, edx
push str.DebugSetting
mov word [ebp - 0x14], dx
call esi
lea edx, [ebp - 0x14]
push edx
call fcn.004e442a
add esp, 4
mov dword [0x533630], eax
test eax, eax
jle 0x4a4a82
mov dword [0x53bbe0], 1
lea ecx, [ebp - 0x230]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x51cd40
xor eax, eax
push str.OutputDriver
push str.DebugSetting
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
call esi
lea eax, [ebp - 0x1c]
push eax
call fcn.004e442a
add esp, 4
mov dword [0x53bbe4], eax
xor eax, eax
lea edx, [ebp - 0x230]
push edx
push 4
mov dword [ebp - 0x22], eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x24]
push eax
push 0x51cd40
push str.OutputDispatch
xor ecx, ecx
push str.DebugSetting
mov word [ebp - 0x24], cx
call esi
lea ecx, [ebp - 0x24]
push ecx
call fcn.004e442a
add esp, 4
mov dword [0x53bbe8], eax
xor eax, eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x230]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x51ce84
push str.OutputEventLog
xor edx, edx
push str.DebugSetting
mov word [ebp - 0xc], dx
call esi
cmp word [ebp - 0xc], 0x30
jne 0x4a4b7e
mov dword [0x533634], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov dword [0x53bbe0], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov dword [0x533630], edi
mov dword [0x53bbe0], edi
mov dword [0x53bbe4], edi
mov dword [0x53bbe8], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret