Function at 0x14004cd60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.140046130
nop
lea rax, vtable.CCustomJapan.0
mov qword [rdi], rax
lea rcx, [rdi + 0x88]
call fcn.14007f180
nop
lea rcx, [rdi + 0xe0]
call fcn.14007f180
nop
lea rcx, [rdi + 0x138]
call fcn.14007f180
nop
lea rcx, [rdi + 0x190]
call fcn.14007f180
nop
lea rcx, [rdi + 0x1e8]
call fcn.14007f180
nop
mov qword [rdi + 0x10], rsi
mov dword [rdi + 0x18], ebx
mov dword [rdi + 0x240], 0xa
test rsi, rsi
jne 0x14004ce08
lea r8, str.c:userschunyung_source_repos_rtkngui_rtknguicustomjapan.cpp
lea edx, [rsi + 0xe]
lea rcx, str._VCpl__RETURN_ON_FALSE:_Line___d__File___s_n
call fcn.140052e90
jmp 0x14004d2f5
xor eax, eax
mov dword [rdi + 0x80], eax
test dword [rsi + 0xcc], 0x200000
je 0x14004ce23
mov dword [rdi + 0x2c], 2
mov eax, dword [rsi + 0x70]
shr eax, 0x15
xor eax, dword [rdi + 0x80]
and eax, 1
xor dword [rdi + 0x80], eax
movzx eax, word [rsi + 0x44a]
mov edx, 0x1033
cmp ax, dx
je 0x14004ce97
mov edx, 0x10cf
cmp ax, dx
je 0x14004ce78
mov edx, 0x1179
cmp ax, dx
jne 0x14004ceac
or dword [rsi + 0x30], 0x100
mov rax, qword [rdi + 0x10]
or dword [rax + 0x3c], 0x10
mov dword [rdi + 0x240], 0x50
jmp 0x14004ceac
or dword [rsi + 0x30], 0x8000000
mov rax, qword [rdi + 0x10]
or dword [rax + 0x34], 0x1000
mov rax, qword [rdi + 0x10]
or dword [rax + 0x34], 0x10000000
jmp 0x14004ceac
mov dword [rdi + 0x20], 1
mov dword [rdi + 0x1c], 1
or dword [rsi + 0x2c], 0x40000
mov ecx, dword [rdi + 0x18]
cmp ecx, 0x2711
jg 0x14004cfaa
je 0x14004cff8
cmp ecx, 0x90
jg 0x14004cf5d
je 0x14004cf49
cmp ecx, 0xb
jl 0x14004d096
cmp ecx, 0xc
jle 0x14004cf08
cmp ecx, 0x38
je 0x14004cefb
cmp ecx, 0x7c
jne 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 0x40000
jmp 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 4
jmp 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 4
mov rax, qword [rdi + 0x10]
or dword [rax + 0x70], 1
mov rax, qword [rdi + 0x10]
or dword [rax + 0x70], 2
mov rax, qword [rdi + 0x10]
or dword [rax + 0x70], 8
cmp dword [rdi + 0x18], 0xc
jne 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 0x8000
or dword [rdi + 0x80], 1
jmp 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 4
or dword [rdi + 0x80], 1
jmp 0x14004d096
cmp ecx, 0xd6
je 0x14004cf80
lea eax, [rcx - 0x188]
cmp eax, 1
ja 0x14004d096
or dword [rdi + 0x80], 1
jmp 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 1
mov rax, qword [rdi + 0x10]
mov ecx, 0x506
cmp cx, word [rax + 0x44c]
jne 0x14004d096
mov dword [rdi + 0x2c], 3
jmp 0x14004d096
cmp ecx, 0x4e29
jg 0x14004d049
je 0x14004d020
cmp ecx, 0x2715
je 0x14004d008
cmp ecx, 0x2716
je 0x14004cff8
lea eax, [rcx - 0x4e21]
cmp eax, 2
ja 0x14004d096
mov dword [rdi + 0x20], 0
mov dword [rdi + 0x28], 1
mov dword [rdi + 0x24], 0x1e
mov dword [rdi + 0x1c], 1
jmp 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x30], 0x10000000
jmp 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x30], 0x10000000
mov rax, qword [rdi + 0x10]
and dword [rax + 0x30], 0xf7ffffff
jmp 0x14004d096
mov dword [rdi + 0x20], 0
mov dword [rdi + 0x28], 1
mov dword [rdi + 0x24], 5
mov dword [rdi + 0x1c], 1
mov rax, qword [rdi + 0x10]
or dword [rax + 0x34], 0x10000
jmp 0x14004d096
sub ecx, 0x4e2a
je 0x14004d08e
cmp ecx, 4
jne 0x14004d096
mov dword [rdi + 0x20], 0
mov dword [rdi + 0x28], 1
mov dword [rdi + 0x24], 5
mov dword [rdi + 0x1c], 1
mov rax, qword [rdi + 0x10]
or dword [rax + 0x34], 0x10000
mov rax, qword [rdi + 0x10]
or dword [rax + 0x34], 0x40
or dword [rdi + 0x80], 0x20
jmp 0x14004d096
mov rax, qword [rdi + 0x10]
or dword [rax + 0x34], 0x40
movzx ecx, word [rsi + 0x44a]
shl ecx, 0x10
movzx eax, word [rsi + 0x448]
or ecx, eax
mov r9d, 0xfe
cmp ecx, 0x10cf1539
ja 0x14004d0e8
je 0x14004d0dc
sub ecx, 0x10cf13c2
je 0x14004d0dc
sub ecx, 0xb3
je 0x14004d0dc
sub ecx, 0x31
je 0x14004d0dc
sub ecx, 0x20
je 0x14004d0dc
cmp ecx, 0x2a
jne 0x14004d290
or dword [rdi + 0x80], 1
jmp 0x14004d290
cmp ecx, 0x11790001
je 0x14004d289
cmp ecx, 0x1179fc30
je 0x14004d222
cmp ecx, 0x1179fdc0
je 0x14004d1ee
cmp ecx, 0x1179ff00
jne 0x14004d290
mov rcx, qword [rdi + 0x10]
movzx edx, word [rcx + 0x44c]
mov eax, 0x8c
add eax, edx
mov r8d, 0xfffd
test r8w, ax
je 0x14004d140
mov eax, 0xff78
cmp ax, dx
jne 0x14004d152
or dword [rcx + 0x30], 0x4000000
or dword [rdi + 0x80], 8
mov rcx, qword [rdi + 0x10]
movzx edx, word [rcx + 0x44c]
lea eax, [r9 + rdx]
cmp ax, 0x2e
ja 0x14004d176
movzx eax, ax
movabs r8, 0x400000000015
bt r8, rax
jb 0x14004d199
lea eax, [rdx + 0x7a]
cmp ax, 0x2c
ja 0x14004d18f
movabs r8, 0x100100000001
bt r8, rax
jb 0x14004d199
mov eax, 0xffb4
cmp ax, dx
jne 0x14004d1a8
or dword [rcx + 0x34], 0x40
or dword [rdi + 0x80], 0x10
mov rcx, qword [rdi + 0x10]
mov eax, 0xff08
cmp ax, word [rcx + 0x44c]
jne 0x14004d1c5
or dword [rcx + 0x34], 0x40
or dword [rdi + 0x80], 0x20
mov rcx, qword [rdi + 0x10]
movzx eax, word [rcx + 0x44c]
add ax, 0x78
mov edx, 0xffdf
test dx, ax
jne 0x14004d290
or dword [rcx + 0x34], 0x40
or dword [rdi + 0x80], 0x20
jmp 0x14004d290
mov rcx, qword [rdi + 0x10]
movzx edx, word [rcx + 0x44c]
mov eax, 0x23e
add eax, edx
cmp ax, 8
ja 0x14004d212
mov r8d, 0x155
bt r8d, eax
jb 0x14004d21c
mov eax, 0xfd3a
cmp dx, ax
jne 0x14004d290
or dword [rcx + 0x34], 0x40
jmp 0x14004d274
mov rdx, qword [rdi + 0x10]
movzx ecx, word [rdx + 0x44c]
mov eax, 0x37c
add eax, ecx
cmp ax, 0x10
ja 0x14004d249
movzx eax, ax
mov r8d, 0x10015
bt r8d, eax
jb 0x14004d270
mov eax, 0x3fc
add eax, ecx
cmp ax, 0x34
ja 0x14004d266
movabs r8, 0x15000000000015
bt r8, rax
jb 0x14004d270
mov eax, 0xfdc0
cmp cx, ax
jne 0x14004d290
or dword [rdx + 0x34], 0x40
mov rax, qword [rdi + 0x10]
or dword [rax + 0x44], 2
mov rax, qword [rdi + 0x10]
or dword [rax + 0x4c], 0x2000
jmp 0x14004d290
or dword [rdi + 0x80], 2
movzx ecx, word [rsi + 0x44e]
shl ecx, 0x10
movzx eax, word [rsi + 0x44c]
or ecx, eax
cmp ecx, 0x11790662
ja 0x14004d2d3
je 0x14004d2bf
sub ecx, 0x11790560
je 0x14004d2ea
sub ecx, 2
je 0x14004d2ea
cmp ecx, r9d
jne 0x14004d2f5
mov rax, qword [rdi + 0x10]
or dword [rax + 0x30], 0x4000000
or dword [rdi + 0x80], 8
jmp 0x14004d2f5
sub ecx, 0x1179ff0a
je 0x14004d2ea
cmp ecx, 0x36
jne 0x14004d2f5
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 8
jmp 0x14004d2f5
mov rax, qword [rdi + 0x10]
or dword [rax + 0x2c], 0x10000000
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret