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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016f9d6
mov eax, dword fs:[0]
push eax
sub esp, 0xb10
mov eax, dword [0x101bd92c]
xor eax, esp
mov dword [esp + 0xb08], eax
push ebx
push esi
push edi
mov eax, dword [0x101bd92c]
xor eax, esp
push eax
lea eax, [esp + 0xb20]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebx + 0x1b4]
push 0xb8
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0xf4], ax
lea eax, [esp + 0xf6]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [esp + 0x718], ax
lea eax, [esp + 0x71a]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [esp + 0x51c], ax
lea eax, [esp + 0x51e]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [esp + 0x9c], ax
mov word [esp + 0xae], ax
mov word [esp + 0x320], ax
xorps xmm0, xmm0
lea eax, [esp + 0x322]
push eax
movq qword [esp + 0xa2], xmm0
movq qword [esp + 0xaa], xmm0
call fcn.10098090
xor eax, eax
push 0x62
push eax
mov word [esp + 0x94], ax
mov word [esp + 0xa6], ax
mov word [esp + 0xbc], ax
xorps xmm0, xmm0
lea eax, [esp + 0xbe]
push eax
movq qword [esp + 0x9a], xmm0
movq qword [esp + 0xa2], xmm0
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [esp + 0x950], ax
lea eax, [esp + 0x952]
push eax
call fcn.10098090
add esp, 0x48
call fcn.100066b0
cmp dword [eax + 0x140], 8
lea edx, [eax + 0x12c]
jb 0x100383e0
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp word [edx], ax
jne 0x10038400
xor ecx, ecx
jmp 0x10038414
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038405
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.100048b0
mov dword [esp + 0xb28], 0
call fcn.100066b0
cmp dword [eax + 0xf8], 8
lea edx, [eax + 0xe4]
jb 0x10038440
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
cmp word [edx], ax
jne 0x10038460
xor ecx, ecx
jmp 0x10038474
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038465
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.100048b0
mov byte [esp + 0xb28], 1
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100384b3
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
call fcn.10018f00
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
lea edx, [esp + 0xec]
jmp 0x100384d0
movzx eax, word [ecx]
mov word [edx], ax
lea ecx, [ecx + 2]
lea edx, [edx + 2]
test ax, ax
jne 0x100384d0
xor ecx, ecx
jmp 0x100384f0
movzx eax, word [ecx + str.UseData]
mov word [esp + ecx + 0x704], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100384f0
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x54]
push eax
lea eax, [esp + 0x508]
push 0x10199c90
push eax
call fcn.10091da4
movzx eax, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x68]
push eax
lea eax, [esp + 0x7c]
push 0x10199c90
push eax
call fcn.10091da4
add esp, 0x28
test ebx, ebx
jne 0x100385bc
lea ecx, [esp + 0xec]
add ecx, 0xfffffffe
lea ecx, [ecx]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10038560
mov eax, dword [str.UseData.ini]
mov dword [ecx], eax
mov eax, dword [0x10199cb0]
mov dword [ecx + 4], eax
mov eax, dword [0x10199cb4]
mov dword [ecx + 8], eax
mov eax, dword [0x10199cb8]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10199cbc]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10199cc0]
mov dword [ecx + 0x14], eax
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ecx + str.OutWordTotal]
mov word [esp + ecx + 0x84], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100385a0
jmp 0x1003868f
push ebx
lea eax, [esp + 0x74]
push 0x10191a90
push eax
call fcn.10091da4
lea ecx, [esp + 0xf8]
add esp, 0xc
add ecx, 0xfffffffe
lea esp, [esp]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100385e0
mov eax, dword [str.UseData]
mov dword [ecx], eax
mov eax, dword [0x1019190c]
mov dword [ecx + 4], eax
mov eax, dword [0x10191910]
mov dword [ecx + 8], eax
mov eax, dword [0x10191914]
lea edx, [esp + 0x70]
mov dword [ecx + 0xc], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10038611
lea edi, [esp + 0xec]
sub edx, esi
add edi, 0xfffffffe
jmp 0x10038630
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10038630
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xec]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10038654
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x10191818]
mov dword [ecx + 4], eax
mov ax, word [0x1019181c]
push ebx
mov word [ecx + 8], ax
lea eax, [esp + 0x88]
push str.OutWordTotal_d
push eax
call fcn.10091da4
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0xec]
push eax
push 0
lea eax, [esp + 0x504]
push eax
lea eax, [esp + 0x710]
push eax
call ebx
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x8c]
push eax
push str.Setting
call ebx
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
push ecx
push 0
push str.LastUseDate
push str.Setting
mov dword [esp + 0x24], eax
call ebx
mov edi, eax
lea eax, [esp + 0x5c]
push eax
call fcn.100946c9
add esp, 4
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
push ecx
push 0
push str.TodayOutWordTotal
push str.Setting
mov esi, eax
call ebx
cmp esi, edi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, eax
je 0x10038752
xor ebx, ebx
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
push str.LastUseDate
push str.Setting
call esi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0x100]
add ebx, eax
add edi, eax
add eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x2f8]
push 0x10191a90
push eax
call fcn.10091da4
add esp, 0xc
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0x2f8]
push eax
lea eax, [esp + 0x504]
push eax
lea eax, [esp + 0x710]
push eax
call esi
push ebx
lea eax, [esp + 0x2f8]
push 0x10191a90
push eax
call fcn.10091da4
add esp, 0xc
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x2f8]
push eax
push str.TodayOutWordTotal
push str.Setting
call esi
push edi
lea eax, [esp + 0x910]
push 0x10191a90
push eax
call fcn.10091da4
add esp, 0xc
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x910]
push eax
lea eax, [esp + 0x8c]
push eax
push str.Setting
call esi
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x10]
mov dword [eax + 0x100], 0
jb 0x10038836
push dword [esp + 0x1c]
call fcn.10091747
add esp, 4
xor eax, eax
cmp dword [esp + 0x48], 8
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x10038860
push dword [esp + 0x34]
call fcn.10091747
add esp, 4
mov ecx, dword [esp + 0xb20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb08]
xor ecx, esp
call fcn.1009174c
mov esp, ebp
pop ebp
ret