Function at 0x416930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545d08
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0xfffe
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], esi
call fcn.0052cde7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x68], ebx
test ebx, ebx
je 0x416a51
push esi
push 0x7fff
push ebx
push str.RebootAfterProcess
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor esi, esi
mov edi, ebx
mov dword [ebp - 0x6c], 0x7fff
cmp word [ebx], si
je 0x4169d2
mov edx, dword [ebp - 0x6c]
push edx
push edi
call fcn.0052ceda
lea esi, [eax + 1]
add esp, 8
cmp esi, 0x7fff
ja 0x416a48
sub dword [ebp - 0x6c], esi
cmp word [edi + esi*2], 0
lea edi, [edi + esi*2]
jne 0x4169a9
cmp dword [ebp - 0x78], 0
je 0x416a81
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d640
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.0040d640
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
push 0x14
push str.MoveFile__s____s__n
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x68], eax
call fcn.0052ceda
add eax, dword [ebp - 0x68]
add esp, 8
add eax, dword [ebp - 0x74]
lea ecx, [eax + esi + 1]
cmp ecx, 0x7fff
jbe 0x416a58
push ebx
call fcn.0052cdad
add esp, 4
lea ecx, [ebp - 0x64]
call fcn.0040a040
lea ecx, [ebp - 0x48]
call fcn.0040a040
xor eax, eax
jmp 0x416b3a
push ebx
call fcn.0052cdad
add esp, 4
xor eax, eax
jmp 0x416b3a
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
push edx
push eax
push str.MoveFile__s____s__n
push esi
push edi
call fcn.0052d99b
add esp, 0x14
lea ecx, [ebp - 0x64]
call fcn.0040a040
lea ecx, [ebp - 0x48]
call fcn.0040a040
jmp 0x416afb
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040d640
mov edx, dword [ebp - 0x1c]
push 0x14
push str.MoveFile__s____s__n
mov dword [ebp - 0x74], edx
call fcn.0052ceda
push 4
push 0x559394
mov ebx, eax
call fcn.0052ceda
add ebx, dword [ebp - 0x74]
add esp, 0x10
add eax, ebx
lea eax, [eax + esi + 1]
cmp eax, 0x7fff
jbe 0x416ad8
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0052cdad
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0040a040
xor eax, eax
jmp 0x416b3a
mov edx, dword [ebp - 0x70]
push 0x559394
push edx
push str.MoveFile__s____s__n
push esi
push edi
call fcn.0052d99b
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.0040a040
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
push eax
push edi
call fcn.0052ceda
mov esi, dword [ebp - 0x7c]
add esp, 8
push esi
push ebx
xor ecx, ecx
push str.RebootAfterProcess
mov word [edi + eax*2 + 2], cx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
call fcn.0052cdad
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 0xc