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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
push 0x4589e4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x65e]
push ecx
mov word [ebp - 0x660], ax
call fcn.0042c9e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x660]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x660]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4174c0
mov ecx, dword [str.DebugWM7]
mov edx, dword [0x44e4fc]
mov dword [eax], ecx
mov ecx, dword [0x44e500]
mov dword [eax + 4], edx
mov edx, dword [0x44e504]
mov dword [eax + 8], ecx
mov ecx, dword [0x44e508]
mov dword [eax + 0xc], edx
mov dx, word [0x44e50c]
mov dword [eax + 0x10], ecx
lea ebx, [ebp - 0x660]
mov word [eax + 0x14], dx
call fcn.004171d0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x24e]
push ecx
mov word [ebp - 0x250], ax
call fcn.0042c9e0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4583b8
lea edx, [ebp - 0x250]
push str._sLogWriteTest.txt
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push 0
push 0x8000080
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x250]
push eax
call edi
cmp eax, 0xffffffff
je 0x417588
push eax
mov dword [0x4589d4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x250]
push ecx
jmp 0x417612
push str.C:Temp
call fcn.0042582a
add esp, 4
cmp eax, 0xffffffff
jne 0x4175a7
push str.C:Temp
call fcn.0042529d
add esp, 4
mov ebx, str.C:TempWM7
call fcn.004171d0
push 0x208
lea edx, [ebp - 0x250]
push 0
push edx
call fcn.0042c9e0
push 0x4583b8
lea eax, [ebp - 0x250]
push str._sLogWriteTest.txt
push eax
call esi
add esp, 0x18
push 0
push 0x8000080
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x250]
push ecx
call edi
cmp eax, 0xffffffff
je 0x417618
push eax
mov dword [0x4589d4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x4589d4], 0
je 0x41783b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x456]
push ecx
mov dword [0x4589d0], 3
mov word [ebp - 0x458], ax
call fcn.0042c9e0
push 0
lea esi, [ebp - 0x458]
call fcn.0041b2c0
mov edi, esi
add esp, 0x10
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417660
mov ecx, 6
mov esi, str.Presto_7.ini
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x690]
push edx
lea eax, [ebp - 0x458]
push eax
movsw word es:[edi], word [esi]
call fcn.004253cc
add esp, 8
test eax, eax
jne 0x41783b
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x458]
push edx
push 0x10
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
push 0x44d274
push str.LogLevel
xor ecx, ecx
push str.MultiIni
mov word [ebp - 0x24], cx
call esi
test eax, eax
je 0x4177cc
lea ecx, [ebp - 0x24]
push str.trace
push ecx
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x417702
mov dword [0x4589d0], eax
jmp 0x4177cc
lea edx, [ebp - 0x24]
push str.debug
push edx
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x417726
mov dword [0x4589d0], 1
jmp 0x4177cc
lea eax, [ebp - 0x24]
push str.driver
push eax
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x41774a
mov dword [0x4589d0], 2
jmp 0x4177cc
lea ecx, [ebp - 0x24]
push str.info
push ecx
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x41776b
mov dword [0x4589d0], 3
jmp 0x4177cc
lea edx, [ebp - 0x24]
push str.warning
push edx
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x41778c
mov dword [0x4589d0], 5
jmp 0x4177cc
lea eax, [ebp - 0x24]
push str.error
push eax
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x4177ad
mov dword [0x4589d0], 6
jmp 0x4177cc
lea ecx, [ebp - 0x24]
push 0x43c900
push ecx
call fcn.004321a7
add esp, 8
test eax, eax
jne 0x4177cc
mov dword [0x4589d0], 7
xor eax, eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x458]
push eax
push 0x10
lea ecx, [ebp - 0x44]
push ecx
push 0x44d274
push str.LogSize
xor edx, edx
push str.MultiIni
mov word [ebp - 0x44], dx
call esi
test eax, eax
je 0x41783b
lea edx, [ebp - 0x44]
push edx
call fcn.00424431
add esp, 4
cmp eax, 0x400
jle 0x417829
mov eax, 0x400
jmp 0x417833
cmp eax, 0xa
jge 0x417833
mov eax, 0xa
shl eax, 0x14
mov dword [0x4589e0], eax
cmp dword [0x4589e0], 0
mov eax, dword [0x4589d4]
jne 0x417853
mov dword [0x4589e0], 0xa00000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004243bb
mov esp, ebp
pop ebp
ret