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

Disassembly:
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x90
mov rdi, rcx
test rcx, rcx
jne 0x140055458
lea rax, [0x14033b564]
mov r9d, 0x13d55
lea r8, str.misuse
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea ecx, [rdi + 0x15]
call fcn.14002c7b0
lea eax, [rdi + 0x15]
add rsp, 0x90
pop rdi
ret
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x88], rbx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140055473
call qword [0x140361580]
mov rdx, qword [rdi]
test rdx, rdx
je 0x14005548d
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x14005548d
call qword [0x140361580]
mov rdx, qword [rdi]
mov ebx, dword [rdi + 0x30]
test ebx, ebx
je 0x1400554a0
lea eax, [rbx - 5]
cmp eax, 1
ja 0x140055b98
mov rcx, qword [rdi + 0x28]
mov r8, qword [rdi + 8]
mov qword [rsp + 0x80], rbp
xor ebp, ebp
mov qword [rsp + 0x78], rsi
mov r9, qword [rcx + 8]
mov rax, qword [r8 + 8]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov r12, qword [r9]
mov r13, qword [rax]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x58], r15
mov dword [rsp + 0xb8], ebp
test rdx, rdx
je 0x1400554f6
cmp byte [r9 + 0x24], 2
jne 0x1400554f6
lea ebx, [rbp + 5]
jmp 0x14005552b
mov ebx, ebp
test rcx, rcx
je 0x140055502
cmp byte [rcx + 0x10], bl
jne 0x14005552b
cmp byte [rcx + 0x11], bl
jne 0x14005550c
cmp byte [rcx + 0x10], bl
jne 0x14005551c
xor r8d, r8d
xor edx, edx
call fcn.140049ca0
mov rcx, qword [rdi + 0x28]
mov ebx, eax
mov r8, qword [rdi + 8]
mov dword [rsp + 0xb8], 1
cmp dword [rdi + 0x14], ebp
jne 0x1400555b7
test ebx, ebx
jne 0x140055632
mov r14, qword [r8 + 8]
mov rax, qword [rcx + 8]
mov esi, dword [r14 + 0x34]
sub esi, dword [r14 + 0x38]
mov ecx, dword [rax + 0x34]
test esi, esi
mov byte [r14 + 0x26], bpl
cmovle esi, ebp
test byte [r14 + 0x28], 2
jne 0x1400555bb
lea eax, [rcx - 0x200]
cmp eax, 0xfe00
ja 0x140055592
lea eax, [rcx - 1]
test ecx, eax
jne 0x140055592
cmp esi, 0x20
jle 0x140055586
cmp ecx, 0x200
mov eax, 0x400
cmove ecx, eax
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.1400493c0
mov rcx, qword [r14]
lea rdx, [r14 + 0x34]
mov r8d, esi
call fcn.14003e740
mov edx, dword [r14 + 0x34]
movzx ecx, si
sub edx, ecx
mov dword [r14 + 0x38], edx
cmp eax, 7
jne 0x1400555bb
mov ebx, eax
jmp 0x140055632
test ebx, ebx
jne 0x140055632
cmp dword [rdi + 0x14], ebp
jne 0x140055632
mov r9, qword [rdi + 8]
lea r8, [rdi + 0x10]
cmp byte [r9 + 0x11], bpl
jne 0x140055618
cmp byte [r9 + 0x10], 2
jb 0x140055618
mov rdx, qword [r9 + 8]
test r8, r8
je 0x1400555ee
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
mov rax, qword [r9]
mov rcx, qword [rdx]
mov r8d, dword [rax + 0x2d0]
cmp r8d, dword [rcx + 0x80]
jle 0x140055614
cmp byte [rcx + 0xa], bpl
je 0x140055614
mov edx, r8d
call fcn.140041af0
jmp 0x140055625
mov ebx, ebp
jmp 0x140055627
mov edx, 2
mov rcx, r9
call fcn.140049ca0
mov ebx, eax
test ebx, ebx
jne 0x140055632
mov dword [rdi + 0x14], 1
mov rax, qword [rdi + 0x28]
mov r15, qword [rax + 8]
mov rax, qword [rdi + 8]
mov ecx, dword [r15 + 0x34]
mov rax, qword [rax + 8]
mov dword [rsp + 0xa0], ecx
mov edx, dword [rax + 0x34]
mov rax, qword [rax]
mov dword [rsp + 0xb0], edx
movzx eax, byte [rax + 9]
mov byte [rsp + 0xa8], al
test ebx, ebx
jne 0x140055683
cmp al, 5
je 0x140055679
cmp byte [r13 + 0x10], bpl
jne 0x140055679
cmp byte [r13 + 0x14], bpl
je 0x140055683
cmp ecx, edx
mov eax, 8
cmovne ebx, eax
mov r15d, dword [r15 + 0x40]
lea rsi, [rdi + 0x18]
mov r14d, ebp
nop
cmp r14d, 0x7fffffff
jge 0x140055770
mov ebp, dword [rdi + 0x18]
lea rsi, [rdi + 0x18]
cmp ebp, r15d
ja 0x140055770
test ebx, ebx
jne 0x1400557b3
mov rax, qword [rdi + 0x28]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1403ecbf8]
div dword [rcx + 0x34]
inc eax
cmp ebp, eax
je 0x140055766
lea r9d, [rbx + 2]
mov edx, ebp
lea r8, [rsp + 0x30]
mov rcx, r12
call qword [r12 + 0x110]
mov ebx, eax
test eax, eax
jne 0x140055766
mov r8, qword [rsp + 0x30]
xor r9d, r9d
mov edx, ebp
mov rcx, rdi
mov r8, qword [r8 + 8]
call fcn.140055200
mov r10, qword [rsp + 0x30]
mov ebx, eax
test r10, r10
je 0x140055766
test byte [r10 + 0x34], 0x20
je 0x14005575e
mov r8, qword [r10 + 0x28]
dec dword [r8 + 0x98]
mov rax, qword [r8 + 0xa8]
mov qword [r10 + 0x20], rax
mov rcx, qword [r8 + 0x48]
mov qword [r8 + 0xa8], r10
mov edx, dword [r10 + 0x30]
dec edx
imul rdx, qword [r8 + 0xc8]
mov r9, qword [rcx]
mov r8, qword [r10 + 8]
call qword [r9 + 0x90]
inc dword [rsi]
inc r14d
jmp 0x140055690
mov rcx, r10
call fcn.140039110
inc dword [rsi]
inc r14d
jmp 0x140055690
test ebx, ebx
jne 0x1400557b3
mov eax, r15d
mov dword [rdi + 0x38], r15d
sub eax, dword [rsi]
inc eax
mov dword [rdi + 0x34], eax
cmp dword [rsi], r15d
ja 0x1400557bc
cmp dword [rdi + 0x3c], ebx
jne 0x140055b18
mov rax, qword [rdi + 0x28]
mov rcx, qword [rax + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x70]
mov qword [rdi + 0x40], rax
mov qword [rdx + 0x70], rdi
mov dword [rdi + 0x3c], 1
jmp 0x140055b18
cmp ebx, 0x65
jne 0x140055b18
test r15d, r15d
jne 0x1400557eb
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov dword [rax + 0x40], r15d
mov rcx, qword [rcx + 8]
call fcn.140049bb0
mov ebx, eax
mov r15d, 1
test eax, eax
je 0x1400557eb
cmp eax, 0x65
jne 0x140055b18
mov rax, qword [rdi + 8]
mov esi, dword [rdi + 0x10]
inc esi
mov rcx, qword [rax + 8]
mov rcx, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x70]
call fcn.140041330
mov ebx, eax
test eax, eax
jne 0x140055b18
bswap esi
mov dword [rbp + 0x28], esi
mov rcx, qword [rdi]
test rcx, rcx
je 0x140055825
call fcn.14008a050
cmp byte [rsp + 0xa8], 5
jne 0x140055847
mov rcx, qword [rdi + 8]
mov edx, 2
call fcn.140054cb0
mov ebx, eax
test eax, eax
jne 0x140055b18
movsxd r10, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xb0]
cmp r10d, ecx
jge 0x140055ae0
mov r14, qword [r13 + 0x48]
mov eax, ecx
mov ebp, dword [r13 + 0x20]
cdq
idiv r10d
mov r12, r10
mov ecx, eax
dec eax
add eax, r15d
movsxd r15, r15d
cdq
idiv ecx
mov rcx, qword [rdi + 8]
xor edx, edx
mov r9d, eax
mov eax, dword [0x1403ecbf8]
mov r8, qword [rcx + 8]
lea esi, [r9 - 1]
div dword [r8 + 0x34]
inc eax
cmp r9d, eax
cmovne esi, r9d
imul r15, r10
mov qword [rsp + 0x40], r15
nop word [rax + rax]
cmp esi, ebp
ja 0x14005595e
mov rax, qword [rdi + 8]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1403ecbf8]
div dword [rcx + 0x34]
inc eax
cmp esi, eax
je 0x14005594f
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, esi
mov rcx, r13
call qword [r13 + 0x110]
mov ebx, eax
test eax, eax
jne 0x14005594f
mov rcx, qword [rsp + 0x30]
call fcn.140041330
mov r10, qword [rsp + 0x30]
mov ebx, eax
test r10, r10
je 0x14005594f
test byte [r10 + 0x34], 0x20
je 0x140055947
mov r8, qword [r10 + 0x28]
dec dword [r8 + 0x98]
mov rax, qword [r8 + 0xa8]
mov qword [r10 + 0x20], rax
mov rcx, qword [r8 + 0x48]
mov qword [r8 + 0xa8], r10
mov edx, dword [r10 + 0x30]
dec edx
imul rdx, qword [r8 + 0xc8]
mov r9, qword [rcx]
mov r8, qword [r10 + 8]
call qword [r9 + 0x90]
jmp 0x14005594f
mov rcx, r10
call fcn.140039110
inc esi
test ebx, ebx
je 0x1400558b0
jmp 0x140055b18
test ebx, ebx
jne 0x140055972
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, r13
call fcn.1400415c0
mov ebx, eax
mov eax, dword [rsp + 0xb0]
add eax, dword [0x1403ecbf8]
movsxd rbp, eax
mov eax, dword [rsp + 0xa0]
cmp rbp, r15
cmovge rbp, r15
add eax, dword [0x1403ecbf8]
movsxd rsi, eax
test ebx, ebx
jne 0x140055b18
mov r15, qword [rsp + 0x38]
cmp rsi, rbp
jge 0x140055a6f
mov rax, rsi
mov qword [rsp + 0xb0], 0
cqo
lea r8, [rsp + 0xb0]
idiv r12
xor r9d, r9d
mov rcx, r15
lea edx, [rax + 1]
call qword [r15 + 0x110]
mov ebx, eax
test eax, eax
jne 0x140055a04
mov rax, qword [rsp + 0xb0]
mov r9, rsi
mov r10, qword [r14]
mov rcx, r14
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rax + 8]
call qword [r10 + 0x18]
mov ebx, eax
mov r8, qword [rsp + 0xb0]
test r8, r8
je 0x140055a5f
test byte [r8 + 0x34], 0x20
je 0x140055a57
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
imul rdx, qword [r10 + 0xc8]
mov r9, qword [rcx]
call qword [r9 + 0x90]
jmp 0x140055a5f
mov rcx, r8
call fcn.140039110
add rsi, r12
test ebx, ebx
je 0x1400559a6
jmp 0x140055b18
mov rax, qword [r14]
lea rdx, [rsp + 0xa0]
mov rcx, r14
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x140055aa0
mov rdx, qword [rsp + 0x40]
cmp qword [rsp + 0xa0], rdx
jle 0x140055aa0
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x140055b18
mov rcx, qword [r13 + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x140055ac3
xor r8d, r8d
lea edx, [rbx + 0x15]
call qword [rax + 0x50]
cmp eax, 0xc
cmovne ebx, eax
test ebx, ebx
jne 0x140055b18
xor ebx, ebx
cmp byte [r13 + 0xb], bl
jne 0x140055afd
movzx edx, byte [r13 + 0xe]
mov rcx, qword [r13 + 0x48]
test edx, edx
je 0x140055afd
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140055afb
mov eax, r10d
xor r8d, r8d
cdq
idiv ecx
xor edx, edx
mov rcx, r13
imul eax, r15d
mov dword [r13 + 0x20], eax
call fcn.1400415c0
mov ebx, eax
test ebx, ebx
jne 0x140055b18
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.14004ac60
mov ebx, eax
mov eax, 0x65
test ebx, ebx
cmove ebx, eax
cmp dword [rsp + 0xb8], 0
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
je 0x140055b82
mov rcx, qword [rdi + 0x28]
cmp byte [rcx + 0x10], 2
jne 0x140055b77
mov rsi, qword [rcx + 8]
cmp byte [rsi + 0x21], 0
je 0x140055b5b
call fcn.14004a930
test eax, eax
jne 0x140055b77
cmp byte [rsi + 0x23], 0
je 0x140055b6a
mov rdx, qword [rsi]
mov eax, dword [rsi + 0x40]
mov dword [rdx + 0x20], eax
mov rcx, qword [rsi]
xor r8d, r8d
xor edx, edx
call fcn.1400415c0
mov rcx, qword [rdi + 0x28]
xor edx, edx
call fcn.14004ac60
mov rsi, qword [rsp + 0x78]
cmp ebx, 0xc0a
mov eax, 7
cmove ebx, eax
mov dword [rdi + 0x30], ebx
mov rax, qword [rdi]
test rax, rax
je 0x140055baf
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140055baf
call qword [0x140361590]
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140055bc2
call qword [0x140361590]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x90
pop rdi
ret