Function at 0x10039153
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x7e0]
sub esp, 0x860
mov eax, dword [0x10139d20]
xor eax, ebp
mov dword [ebp + 0x7dc], eax
mov eax, ecx
mov edx, dword [eax + 0x88c]
xor ecx, ecx
cmp dword [edx + 0x224], ecx
mov dword [ebp - 0x68], eax
je 0x100394a7
cmp dword [eax + 0x85c], ecx
jne 0x100394a7
push ebx
push esi
push edi
mov edi, 0x206
push edi
push ecx
lea eax, [ebp - 0x56]
push eax
mov word [ebp - 0x58], cx
call fcn.10077be0
add esp, 0xc
call fcn.100058ef
mov ecx, eax
call fcn.10017bf1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100780db
lea eax, [ebp - 0x58]
push str.Config.ini
push eax
call fcn.100780b1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
push 2
push str.ApplicationUpdate
mov esi, str.Setting
push esi
call ebx
test eax, eax
mov dword [ebp - 0x6c], eax
je 0x100394a4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.100058ef
mov ecx, eax
call fcn.10017c43
push eax
push 0xffffffffffffffff
push str.LastUpdDay
push esi
mov dword [ebp - 0x5c], eax
call ebx
push dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
push 0xffffffffffffffff
push str.SoftUpdHour
push esi
call ebx
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
push 0xffffffffffffffff
push str.SoftUpdMinute
push esi
call ebx
cmp dword [ebp - 0x64], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
je 0x10039251
cmp eax, 0xffffffff
jne 0x100392f2
push 0x11
push 8
call fcn.1001a688
and word [ebp + 0x5c0], 0
push edi
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x5c2]
push 0
push eax
call fcn.10077be0
push dword [ebp - 0x60]
lea eax, [ebp + 0x5c0]
push 0x100f2494
push eax
call fcn.100054f5
add esp, 0x20
push dword [ebp - 0x5c]
lea eax, [ebp + 0x5c0]
push eax
push str.SoftUpdHour
push esi
call ebx
mov eax, dword [ebp - 0x60]
push 0x3c
push 0
mov dword [ebp - 0x64], eax
call fcn.1001a688
and word [ebp + 0x3b8], 0
push edi
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x3ba]
push 0
push eax
call fcn.10077be0
push dword [ebp - 0x60]
lea eax, [ebp + 0x3b8]
push 0x100f2494
push eax
call fcn.100054f5
add esp, 0x20
push dword [ebp - 0x5c]
lea eax, [ebp + 0x3b8]
push eax
push str.SoftUpdMinute
push esi
call ebx
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp - 0x7a]
cmp dword [ebp - 0x70], ecx
je 0x100394a4
dec ecx
cmp ecx, dword [ebp - 0x70]
jne 0x10039322
movzx ecx, word [ebp - 0x78]
cmp ecx, dword [ebp - 0x64]
jne 0x1003931c
movzx ecx, word [ebp - 0x76]
cmp ecx, eax
jl 0x100394a4
jmp 0x10039322
jle 0x100394a4
and word [ebp + 0x1b0], 0
push edi
lea eax, [ebp + 0x1b2]
push 0
push eax
call fcn.10077be0
and word [ebp + 0x3b8], 0
push edi
lea eax, [ebp + 0x3ba]
push 0
push eax
call fcn.10077be0
and word [ebp + 0x5c0], 0
push edi
lea eax, [ebp + 0x5c2]
push 0
push eax
call fcn.10077be0
add esp, 0x24
call fcn.100058ef
mov ecx, eax
call fcn.10017bf1
push eax
lea eax, [ebp + 0x5c0]
push eax
call fcn.100780db
lea eax, [ebp + 0x5c0]
push str.WnUpd.exe
push eax
call fcn.100780b1
lea eax, [ebp + 0x1b0]
push 0x100f57cc
push eax
call fcn.100780b1
lea eax, [ebp + 0x5c0]
push eax
lea eax, [ebp + 0x1b0]
push eax
call fcn.100780b1
lea eax, [ebp + 0x1b0]
push 0x100f5858
push eax
call fcn.100780b1
add esp, 0x28
cmp dword [ebp - 0x6c], 1
jne 0x100393d9
push str.RunPrompt
jmp 0x100393eb
cmp dword [ebp - 0x6c], 2
jne 0x100393e6
push str.RunAuto
jmp 0x100393eb
push 0x1011e03c
lea eax, [ebp + 0x3b8]
push eax
call fcn.100780db
pop ecx
pop ecx
lea eax, [ebp + 0x3b8]
push eax
lea eax, [ebp + 0x1b0]
push eax
call fcn.100780b1
pop ecx
pop ecx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x5c0]
push eax
call fcn.1001a323
test eax, eax
pop ecx
je 0x10039439
mov ecx, dword [ebp - 0x68]
lea eax, [ebp + 0x1b0]
push eax
call fcn.100390c8
and word [ebp + 0x7c8], 0
xor eax, eax
lea edi, [ebp + 0x7ca]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp - 0x7a]
push eax
lea eax, [ebp + 0x7c8]
push 0x100f2494
push eax
call fcn.100054f5
add esp, 0xc
push dword [ebp - 0x5c]
mov edi, 0x100fb4cc
push edi
push str.SoftUpdHour
push esi
call ebx
push dword [ebp - 0x5c]
push edi
push str.SoftUpdMinute
push esi
call ebx
push dword [ebp - 0x5c]
lea eax, [ebp + 0x7c8]
push eax
push str.LastUpdDay
push esi
call ebx
mov eax, dword [ebp - 0x68]
mov dword [eax + 0x85c], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7dc]
xor ecx, ebp
call fcn.100773e8
add ebp, 0x7e0
leave
ret