Function at 0x1403e6e60
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
mov r14, rdx
mov rbx, rcx
call sym.ErrorReportClient.exe_void___cdecl_SfSkin_Bmp_Free_struct_tSFSKINBMP____ptr64_
mov rsi, qword [r14 + 0x10]
xor ebp, ebp
and dword [rbx + 0x10], 0xffffffed
mov r8d, dword [r14]
xor r8d, dword [rbx + 0x10]
and r8d, 1
xor r8d, dword [rbx + 0x10]
mov dword [rbx + 0x10], r8d
mov eax, dword [r14]
add eax, eax
xor eax, r8d
and eax, 4
xor eax, r8d
mov dword [rbx + 0x10], eax
mov ecx, dword [r14]
add ecx, ecx
xor ecx, eax
and ecx, 8
xor ecx, eax
mov dword [rbx + 0x10], ecx
mov eax, dword [r14]
shl eax, 5
xor eax, ecx
and eax, 0x100
xor eax, ecx
mov dword [rbx + 0x10], eax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1403e6f6e
cmp word [rdx], bp
je 0x1403e6f6e
mov rax, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1403e6f6e
cmp eax, 3
jne 0x1403e6f5c
movzx eax, word [rsp + 0x30]
sub ax, 0x30
cmp ax, 9
ja 0x1403e6f5c
mov r9, qword [rdi + 8]
xor r8d, r8d
mov rdx, qword [r14 + 8]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [rax - 0x64]
cmp ecx, 0x383
ja 0x1403e6f5c
or dword [rbx + 0x10], 2
mov r8, rdi
movzx esi, ax
mov rcx, rbx
mov edx, esi
call sym.ErrorReportClient.exe_long_int___cdecl_SfSkin_Bmp_GetFromResContext_struct_tSFSKINBMP____ptr64__wchar_t_const____ptr64__struct_CSfSkinContext_const____ptr64_
cmp qword [rbx], rbp
jne 0x1403e6fa3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sym.ErrorReportClient.exe_long_int___cdecl_SfSkin_Bmp_GetFromFile_struct_tSFSKINBMP____ptr64__wchar_t_const____ptr64_
cmp qword [rbx], rbp
jne 0x1403e6fa3
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1403e6f8f
mov rdx, rsi
mov rcx, rbx
call sym.ErrorReportClient.exe_long_int___cdecl_SfSkin_Bmp_GetFromResPool_struct_tSFSKINBMP____ptr64__wchar_t_const____ptr64__struct__SFRESPOOL_const____ptr64_
test eax, eax
jns 0x1403e7090
mov r8, qword [rdi + 0x10]
mov rdx, rsi
mov rcx, rbx
call sym.ErrorReportClient.exe_long_int___cdecl_SfSkin_Bmp_GetFromResource_struct_tSFSKINBMP____ptr64__wchar_t_const____ptr64__struct_HSFLANG______ptr64_
jmp 0x1403e7090
mov rax, qword [r14 + 8]
lea r9, str.Tile_s
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
lea edx, [r8 + 0x64]
call sym.ErrorReportClient.exe_SfCchPrintF
mov r8d, dword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov r9, qword [rdi + 8]
and r8d, 1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and dword [rbx + 0x10], 0xfffffffe
lea r9, str.SfSkin_Colorize_s
test eax, eax
mov ecx, ebp
setne cl
xor r8d, r8d
or dword [rbx + 0x10], ecx
lea rcx, [rsp + 0x30]
mov rax, qword [r14 + 8]
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x64]
call sym.ErrorReportClient.exe_SfCchPrintF
mov r8d, dword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov r9, qword [rdi + 8]
mov rcx, qword [rdi]
shr r8d, 2
and r8d, 1
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and dword [rbx + 0x10], 0xfffffffb
lea r9, str.Mask_s
test eax, eax
mov ecx, ebp
mov r8d, 4
cmovne ecx, r8d
xor r8d, r8d
or dword [rbx + 0x10], ecx
lea rcx, [rsp + 0x30]
mov rax, qword [r14 + 8]
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x64]
call sym.ErrorReportClient.exe_SfCchPrintF
mov r8d, dword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov r9, qword [rdi + 8]
mov rcx, qword [rdi]
shr r8d, 3
and r8d, 1
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
and dword [rbx + 0x10], 0xfffffff7
mov ecx, ebp
test eax, eax
setne cl
shl ecx, 3
or dword [rbx + 0x10], ecx
cmp qword [rbx], rbp
mov eax, 0x80004005
cmovne eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret