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

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x3c], 0
movsxd rax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0x88]
cmp eax, 1
jne 0x14004d81b
mov dword [rsp + 0x24], 1
jmp 0x14004d8cc
mov dword [rsp + 0x24], 2
movzx eax, byte [rsp + 0x88]
mov ecx, 3
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x14004d845
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
jge 0x14004d866
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14004d866
jmp 0x14004d83a
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x20], eax
jge 0x14004d87d
mov dword [rsp + 0x38], 1
jmp 0x14004d885
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 0x88]
lea rax, [rax + rcx - 3]
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0x88]
and eax, 1
cdqe
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x70], rax
jae 0x14004d909
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
lea rcx, [0x1400d5b50]
movzx eax, byte [rcx + rax]
and eax, 1
test eax, eax
je 0x14004d909
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x14004d8cc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x70], rax
jae 0x14004d963
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
cmp eax, 0x2d
jne 0x14004d941
mov dword [rsp + 0x2c], 1
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x14004d963
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
cmp eax, 0x2b
jne 0x14004d963
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x70], rax
jae 0x14004d9a7
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
cmp eax, 0x30
jne 0x14004d9a7
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x14004d96d
mov dword [rsp + 0x20], 0
jmp 0x14004d9c1
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x30]
jae 0x14004da0f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x30
jl 0x14004da0f
cmp dword [rsp + 0x28], 0x39
jg 0x14004da0f
imul rax, qword [rsp + 0x48], 0xa
movsxd rcx, dword [rsp + 0x28]
lea rax, [rax + rcx - 0x30]
mov qword [rsp + 0x48], rax
jmp 0x14004d9b1
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0x48], rax
jbe 0x14004da56
cmp dword [rsp + 0x2c], 0
je 0x14004da38
movabs rax, 0x8000000000000000
mov qword [rsp + 0x50], rax
jmp 0x14004da47
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
jmp 0x14004da7c
cmp dword [rsp + 0x2c], 0
je 0x14004da6f
mov rax, qword [rsp + 0x48]
neg rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
jmp 0x14004da7c
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
cmp dword [rsp + 0x28], 0
je 0x14004da9a
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x30]
jb 0x14004dabf
cmp dword [rsp + 0x20], 0
jne 0x14004daad
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x58], rax
je 0x14004dabf
imul eax, dword [rsp + 0x24], 0x13
cmp dword [rsp + 0x20], eax
jg 0x14004dabf
cmp dword [rsp + 0x3c], 0
je 0x14004dac8
mov eax, 1
jmp 0x14004db25
imul eax, dword [rsp + 0x24], 0x13
cmp dword [rsp + 0x20], eax
jge 0x14004dad9
xor eax, eax
jmp 0x14004db25
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
call fcn.14002a4a0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x14004daf8
xor eax, eax
jmp 0x14004db25
cmp dword [rsp + 0x28], 0
jle 0x14004db08
mov eax, 1
jmp 0x14004db25
cmp dword [rsp + 0x2c], 0
je 0x14004db19
mov dword [rsp + 0x40], 0
jmp 0x14004db21
mov dword [rsp + 0x40], 2
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret