Function at 0x18004c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x26c]
push eax
xor ebx, ebx
push str._UserDataUser_
mov byte [esp + 0x4c], 9
mov byte [esp + 0x4d], 8
mov byte [esp + 0x4e], 3
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], 2
mov byte [esp + 0x51], 5
mov byte [esp + 0x52], 0xe
mov byte [esp + 0x53], 0xb
mov byte [esp + 0x54], 4
mov byte [esp + 0x55], 7
mov byte [esp + 0x56], 1
mov byte [esp + 0x57], 0xf
mov byte [esp + 0x58], 0xc
mov byte [esp + 0x59], 0xa
mov byte [esp + 0x5a], 6
mov byte [esp + 0x5b], 0xd
call sym.HncBL90.dll_HncPathToAbsolute
mov esi, dword [sym.imp.MSVCR90.dll_wcscat_s]
push 0x1804079c
lea ecx, [esp + 0x26c]
push 0x104
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x268]
push edx
call sym.HncBL90.dll_HncPathCreate
push str.WinHDB90EC.ini
lea eax, [esp + 0x26c]
push 0x104
push eax
call esi
add esp, 0xc
push 0x180409fc
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCR90.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x18004ed0
cmp dword [esp + 0xc], ebx
je 0x18004ed0
push 0x100
lea eax, [esp + 0x16c]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.MSVCR90.dll_fgetc]
add esp, 0xc
xor esi, esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x18004d7a
mov edx, dword [esp + 0xc]
push edx
call edi
mov byte [esp + esi + 0x16c], al
inc esi
add esp, 4
cmp esi, 0x10
jl 0x18004d51
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x18004d84
sub eax, edx
shr eax, 1
mov esi, eax
xor eax, eax
cmp esi, ebx
jle 0x18004dce
jmp 0x18004da0
movzx ecx, byte [esp + eax + 0x48]
mov dl, byte [esp + ecx + 0x168]
movzx ecx, byte [esp + eax + 0x40]
mov cl, byte [esp + ecx + 0x168]
mov byte [esp + eax + 0x5c], dl
mov edx, eax
and edx, 7
xor cl, byte [esp + edx + 0x5c]
inc eax
cmp eax, esi
mov byte [esp + eax + 0x67], cl
jl 0x18004da0
push 4
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x58]
mov byte [esp + esi + 0x70], bl
mov esi, dword [sym.imp.MSVCR90.dll_strncpy_s]
push 0xa
push eax
call esi
mov edi, dword [sym.imp.MSVCR90.dll_atoi]
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x68], bl
call edi
add esp, 0x14
push 2
sub eax, 0x76c
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x58]
push 0xa
push eax
call esi
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x66], bl
call edi
add esp, 0x14
push 2
dec eax
lea edx, [esp + 0x72]
push edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x58]
push 0xa
push eax
call esi
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x66], bl
call edi
lea edx, [esp + 0x30]
add esp, 0x14
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MSVCR90.dll__mktime64]
mov esi, eax
lea eax, [esp + 0x14]
add esp, 4
push eax
mov edi, edx
call dword [sym.imp.MSVCR90.dll__time64]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
push edi
push esi
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__difftime64]
fdiv qword [0x180437c0]
mov eax, dword [esp + 0x1c]
push eax
fstp qword [esp + 0x54]
call dword [sym.imp.MSVCR90.dll_fclose]
fldz
fcomp qword [esp + 0x54]
add esp, 0x14
fnstsw ax
test ah, 0x41
jne 0x18004ed0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x268]
push ecx
call sym.HncBL90.dll__SetCurrentDays_4
mov ecx, dword [esp + 0x474]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.1802929c
mov esp, ebp
pop ebp
ret