Function at 0x415780
Capabilities:
Access peb ldr_data
Get ntdll base address
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x495710
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x38], ebp
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x3c], 1
call fcn.00412990
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str.upcfg.dat
mov byte [esp + 0x44], 2
call fcn.0040d090
add esp, 0xc
lea edi, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.00401cd0
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415833
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415858
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.0042cd20
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str.mainupcfg.dat
mov byte [esp + 0x40], 4
call fcn.0040d090
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x38], 5
call fcn.00401cd0
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4158ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push 0
push edi
call fcn.004602c8
mov ebx, dword [esp + 0x1c]
add esp, 8
test eax, eax
push ebx
push 0
je 0x4158ff
push str.AutoReupdateDelayTime
push str.common
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x415975
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.alertreboot
push str.common
call esi
push edi
push 0
push str.alertreboot
push str.common
mov ebp, eax
call esi
push ebx
push 0
push str.forcereboot
push str.common
mov dword [esp + 0x3c], eax
call esi
push edi
push 0
push str.forcereboot
push str.common
mov dword [esp + 0x38], eax
call esi
push edi
push 0
push str.AutoReupdateDelayTime
push str.common
mov dword [esp + 0x34], eax
call esi
mov edx, dword [esp + 0x24]
xor ecx, ecx
cmp dword [esp + 0x28], edx
setne cl
mov esi, ecx
xor ecx, ecx
cmp ebp, dword [esp + 0x2c]
setne cl
mov ebp, ecx
cmp dword [0x4baa8c], 0
mov dword [0x4baa84], ebp
jne 0x41598a
mov dword [0x4baa8c], esi
push eax
push 0
push esi
push ebp
push str.KHelper::LoadUpdateConfig_bAlertReboot:_d__groupupdate:_d__ReupdateForceReboot:_d__AutoReupdateDelayTime:_ds
mov ecx, 0x4ba960
mov dword [0x4baae4], eax
call fcn.0041d5c0
add edi, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x38], 0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4159c7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159eb
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret