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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x38], 0
movsxd rax, dword [rsp + 0x38]
cmp rax, 0xa
jne 0x1401611b3
lea rcx, str.bad_format
call fcn.14014c670
test eax, eax
je 0x1401611a1
mov dword [rsp + 0x68], 0
jmp 0x1401611a9
mov dword [rsp + 0x68], 0
movsxd rax, dword [rsp + 0x68]
jmp 0x140161773
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 3
lea rax, [rsp + rax + 0xb0]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0xf0]
call fcn.14014d4c0
movzx eax, al
mov dword [rsp + 0x98], eax
mov rcx, qword [rsp + 0xf0]
call fcn.14014d4c0
mov rcx, qword [rsp + 0x90]
mov byte [rcx], al
mov rcx, qword [rsp + 0xf0]
call fcn.14014d4c0
mov rcx, qword [rsp + 0x90]
mov byte [rcx + 1], al
mov rcx, qword [rsp + 0xf0]
call fcn.14014d4c0
mov rcx, qword [rsp + 0x90]
mov byte [rcx + 2], al
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 2]
mov ecx, dword [rsp + 0x4c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0xf0]
call fcn.14014d570
test eax, eax
je 0x140161299
lea rcx, [0x1401d1c70]
call fcn.14014c670
test eax, eax
je 0x140161287
mov dword [rsp + 0x6c], 0
jmp 0x14016128f
mov dword [rsp + 0x6c], 0
movsxd rax, dword [rsp + 0x6c]
jmp 0x140161773
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax]
cmp eax, 8
je 0x1401612d5
lea rcx, [0x1401d1c40]
call fcn.14014c670
test eax, eax
je 0x1401612c3
mov dword [rsp + 0x70], 0
jmp 0x1401612cb
mov dword [rsp + 0x70], 0
movsxd rax, dword [rsp + 0x70]
jmp 0x140161773
cmp dword [rsp + 0x98], 0
jne 0x14016117c
mov eax, dword [rsp + 0x4c]
and eax, 0x10
test eax, eax
je 0x1401612f8
mov dword [rsp + 0x74], 4
jmp 0x140161300
mov dword [rsp + 0x74], 3
mov rax, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x74]
mov dword [rax], ecx
mov dword [rsp + 0x48], 0
jmp 0x140161322
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0x48], eax
jge 0x14016176b
mov dword [rsp + 0x44], 0
jmp 0x140161347
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x44], eax
jge 0x140161766
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 3
lea rax, [rsp + rax + 0xb0]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x48]
imul eax, dword [rsp + 0xf8]
shl eax, 2
cdqe
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 1]
mov byte [rsp + 0x50], al
cmp byte [rsp + 0x50], 0
je 0x1401613e5
cmp byte [rsp + 0x50], 1
je 0x140161444
cmp byte [rsp + 0x50], 2
je 0x140161550
lea rcx, [0x1401d1c50]
call fcn.14014c670
test eax, eax
je 0x1401613d3
mov dword [rsp + 0x78], 0
jmp 0x1401613db
mov dword [rsp + 0x78], 0
movsxd rax, dword [rsp + 0x78]
jmp 0x140161773
mov dword [rsp + 0x54], 0
jmp 0x140161407
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xf8]
cmp dword [rsp + 0x54], eax
jge 0x14016143f
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 2]
mov r8, qword [rsp + 0x30]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.140161020
test rax, rax
jne 0x14016143d
xor eax, eax
jmp 0x140161773
jmp 0x1401613ef
jmp 0x140161761
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jle 0x14016154b
mov rcx, qword [rsp + 0xf0]
call fcn.14014d4c0
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0xf0]
call fcn.14014d570
test eax, eax
je 0x1401614a8
lea rcx, [0x1401d1ca0]
call fcn.14014c670
test eax, eax
je 0x140161496
mov dword [rsp + 0x7c], 0
jmp 0x14016149e
mov dword [rsp + 0x7c], 0
movsxd rax, dword [rsp + 0x7c]
jmp 0x140161773
movzx eax, byte [rsp + 0x20]
cmp eax, dword [rsp + 0x3c]
jle 0x1401614bc
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 2]
lea r8, [rsp + 0xa8]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.140161020
test rax, rax
jne 0x1401614e8
xor eax, eax
jmp 0x140161773
mov dword [rsp + 0x58], 0
jmp 0x14016150a
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0x20]
cmp dword [rsp + 0x58], eax
jge 0x140161535
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 2]
lea r8, [rsp + 0xa8]
mov rdx, qword [rsp + 0x30]
mov ecx, eax
call fcn.1401610d0
nop
jmp 0x1401614f2
movzx eax, byte [rsp + 0x20]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
jmp 0x14016144f
jmp 0x140161761
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x140161761
mov rcx, qword [rsp + 0xf0]
call fcn.14014d4c0
movzx eax, al
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0xf0]
call fcn.14014d570
test eax, eax
je 0x1401615c0
lea rcx, [0x1401d1cb0]
call fcn.14014c670
test eax, eax
je 0x1401615a8
mov dword [rsp + 0x80], 0
jmp 0x1401615b3
mov dword [rsp + 0x80], 0
movsxd rax, dword [rsp + 0x80]
jmp 0x140161773
cmp dword [rsp + 0x24], 0x80
jl 0x1401616b2
cmp dword [rsp + 0x24], 0x80
jne 0x1401615eb
mov rcx, qword [rsp + 0xf0]
call fcn.14014d840
mov dword [rsp + 0x24], eax
jmp 0x1401615f6
mov eax, dword [rsp + 0x24]
sub eax, 0x7f
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x24], eax
jle 0x140161635
lea rcx, [0x1401d1c80]
call fcn.14014c670
test eax, eax
je 0x14016161d
mov dword [rsp + 0x84], 0
jmp 0x140161628
mov dword [rsp + 0x84], 0
movsxd rax, dword [rsp + 0x84]
jmp 0x140161773
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 2]
lea r8, [rsp + 0xac]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.140161020
test rax, rax
jne 0x140161661
xor eax, eax
jmp 0x140161773
mov dword [rsp + 0x28], 0
jmp 0x140161683
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jge 0x1401616ad
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 2]
lea r8, [rsp + 0xac]
mov rdx, qword [rsp + 0x30]
mov ecx, eax
call fcn.1401610d0
nop
jmp 0x14016166b
jmp 0x14016174c
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x24], eax
jle 0x1401616f8
lea rcx, [0x1401d1c90]
call fcn.14014c670
test eax, eax
je 0x1401616e3
mov dword [rsp + 0x88], 0
jmp 0x1401616ee
mov dword [rsp + 0x88], 0
movsxd rax, dword [rsp + 0x88]
jmp 0x140161773
mov dword [rsp + 0x28], 0
jmp 0x14016171a
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jge 0x14016174c
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 2]
mov r8, qword [rsp + 0x30]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.140161020
test rax, rax
jne 0x14016174a
xor eax, eax
jmp 0x140161773
jmp 0x140161702
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14016155b
jmp 0x14016133d
jmp 0x140161318
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14019c6f0
add rsp, 0xe8
ret