Function at 0x417980
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x494dca
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, dword [esp + 0x15c]
lea eax, [esp + 0x4c]
mov edi, ecx
mov ebx, edx
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
call fcn.00431770
xor ebp, ebp
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x154], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00404e10
mov byte [esp + 0x150], 1
cmp esi, ebp
je 0x417c5e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x417a10
sub eax, edx
sar eax, 1
je 0x417c5e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417a60
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x154], al
call fcn.00404cf0
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x154], 0xffffffff
call fcn.00431850
mov eax, 0xfffffffe
jmp 0x417c88
lea ecx, [esp + 0x4c]
call fcn.00431a00
test eax, eax
je 0x417c11
cmp dword [esp + 0x64], 8
mov ecx, dword [esp + 0x50]
jae 0x417a80
lea ecx, [esp + 0x50]
lea eax, [esp + 0x2c]
lea edx, [esp + 0x4c]
call fcn.00432000
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov esi, eax
mov ecx, ebp
sub ecx, ebx
mov eax, 0x92492493
imul ecx
mov eax, dword [esp + 0x158]
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor edi, edi
mov dword [esp + 0x20], esi
cmp eax, ecx
jae 0x417ba2
test eax, eax
jbe 0x417b10
lea esi, [esp + 0x2c]
call fcn.0040a0e0
cmp dword [eax + 0x18], 8
jb 0x417adb
mov ecx, dword [eax + 4]
jmp 0x417ade
lea ecx, [eax + 4]
push 0
mov edx, str.BootTime
lea eax, [esp + 0x50]
call fcn.00432430
add dword [esp + 0x14], eax
adc dword [esp + 0x18], 0
inc edi
cmp edi, dword [esp + 0x158]
jb 0x417ac7
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x158]
lea esi, [eax + 1]
cmp esi, dword [esp + 0x20]
jge 0x417bfe
lea edi, [esi*8]
sub edi, esi
add edi, edi
add edi, edi
jmp 0x417b38
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
sub ebp, ebx
mov eax, 0x92492493
imul ebp
add edx, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x417b5b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x38]
mov ecx, 8
cmp dword [edi + ebx + 0x18], ecx
jb 0x417b6c
mov eax, dword [edi + ebx + 4]
jmp 0x417b70
lea eax, [edi + ebx + 4]
cmp dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x50]
jae 0x417b7e
lea ecx, [esp + 0x50]
push ecx
push 0
push eax
push str.BootTime
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add dword [esp + 0x24], eax
adc dword [esp + 0x28], 0
inc esi
add edi, 0x1c
cmp esi, dword [esp + 0x20]
jl 0x417b30
jmp 0x417bfe
xor ebp, ebp
cmp esi, ebp
jle 0x417bf2
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, edi
lea esi, [esp + 0x2c]
call fcn.0040a0e0
mov ecx, 8
cmp dword [eax + 0x18], ecx
jb 0x417bc8
mov eax, dword [eax + 4]
jmp 0x417bcb
add eax, 4
cmp dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x50]
jae 0x417bd9
lea ecx, [esp + 0x50]
push ecx
push ebp
push eax
push str.BootTime
call ebx
add dword [esp + 0x14], eax
adc dword [esp + 0x18], ebp
inc edi
cmp edi, dword [esp + 0x20]
jl 0x417bb0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebp
lea edi, [esp + 0x4c]
call fcn.00432240
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
xor ebp, ebp
cmp edi, ebp
je 0x417c22
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [edi], ecx
mov dword [edi + 4], edx
cmp ebx, ebp
je 0x417c33
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x154], 0
call fcn.00404cf0
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x154], 0xffffffff
call fcn.00431850
xor eax, eax
jmp 0x417c88
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x154], 0
call fcn.00404cf0
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x154], 0xffffffff
call fcn.00431850
or eax, 0xffffffff
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x140
ret 8