Function at 0x140169230
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402bb010]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
mov qword [rbp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
call qword [0x1401a9910]
test rax, rax
jne 0x1401692a2
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rdx, [0x1402298a0]
mov rcx, rbx
call fcn.140053ee0
jmp 0x1401696d3
lea rdx, [rbp + 0x60]
mov rcx, rax
call qword [0x1401a9918]
nop
lea rcx, [rsp + 0x30]
call fcn.14006ed80
nop
lea rdx, str.oem_str
lea rcx, [rsp + 0x40]
call fcn.14006f790
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x70]
mov rcx, rax
call fcn.1400808a0
lea rdx, [0x1401b5868]
mov rcx, rax
call fcn.14006f790
mov rcx, rax
lea rdx, str.SystemEnvironment::GetShipmentRegion
call fcn.14006f790
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.14006f790
mov rcx, rax
lea rdx, [0x140169700]
call qword [0x1401a91e8]
nop
movdqa xmm0, xmmword [0x14024d4b0]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
mov dword [rsp + 0x20], 4
mov rcx, qword [rbp - 0x48]
test cl, 2
jne 0x140169368
mov rax, qword [rbp - 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140169368
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x50]
cmovb r8, qword [rbp - 0x50]
sub r8, rdx
jmp 0x140169391
test cl, 4
jne 0x14016939e
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x14016939e
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x68]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x40]
call fcn.140053f60
nop
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp + 0x40]
call fcn.1400524a0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.14006f390
lea rcx, [rsp + 0x50]
call qword [0x1401a93c8]
lea rcx, [rbp - 0x38]
call qword [0x1401a9368]
cmp qword [rbp + 0x70], 8
jb 0x140169579
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rcx, qword [rbp + 0x60]
mov r8d, 4
lea rdx, str._HUA
call qword [0x1401a9c68]
test eax, eax
je 0x14016954f
lea rcx, [rsp + 0x30]
call fcn.14006ed80
nop
lea rdx, str.oem_str_tag_err
lea rcx, [rsp + 0x40]
call fcn.14006f790
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.14006f790
mov rcx, rax
lea rdx, str.SystemEnvironment::GetShipmentRegion
call fcn.14006f790
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.14006f790
mov rcx, rax
lea rdx, [0x140169700]
call qword [0x1401a91e8]
nop
movdqa xmm0, xmmword [0x14024d4b0]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
mov dword [rsp + 0x20], 0x42
mov rcx, qword [rbp - 0x48]
test cl, 2
jne 0x1401694d5
mov rax, qword [rbp - 0x78]
mov r8, qword [rax]
test r8, r8
je 0x1401694d5
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x50]
cmovb r8, qword [rbp - 0x50]
sub r8, rdx
jmp 0x1401694fe
test cl, 4
jne 0x14016950b
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x14016950b
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x68]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x40]
call fcn.140053f60
nop
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp + 0x40]
call fcn.1400524a0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
jmp 0x14016968c
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov r9d, 2
lea r8d, [r9 + 5]
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.140053fd0
jmp 0x1401696ca
lea rcx, [rsp + 0x30]
call fcn.14006ed80
nop
lea rdx, str.oem_str_len_err
lea rcx, [rsp + 0x40]
call fcn.14006f790
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.14006f790
mov rcx, rax
lea rdx, str.SystemEnvironment::GetShipmentRegion
call fcn.14006f790
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.14006f790
mov rcx, rax
lea rdx, [0x140169700]
call qword [0x1401a91e8]
nop
movdqa xmm0, xmmword [0x14024d4b0]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
mov dword [rsp + 0x20], 0x12
mov rcx, qword [rbp - 0x48]
test cl, 2
jne 0x140169617
mov rax, qword [rbp - 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140169617
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x50]
cmovb r8, qword [rbp - 0x50]
sub r8, rdx
jmp 0x140169640
test cl, 4
jne 0x14016964d
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x14016964d
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x68]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x40]
call fcn.140053f60
nop
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp + 0x40]
call fcn.1400524a0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.14006f390
lea rcx, [rsp + 0x50]
call qword [0x1401a93c8]
lea rcx, [rbp - 0x38]
call qword [0x1401a9368]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rdx, [0x1402298a0]
mov rcx, rbx
call fcn.140053ee0
nop
lea rcx, [rbp + 0x60]
call fcn.1400524a0
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14016ee40
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret