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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x78
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov dword [rsp + 0x24], r9d
mov r13d, ebp
mov dword [rsp + 0x28], edx
mov r15, r8
mov edi, edx
mov rsi, rcx
call fcn.140047430
mov ebx, eax
test eax, eax
jne 0x140047acf
mov eax, dword [rsi + 0x58]
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x1400478a8
mov ecx, dword [rsi + 0x88]
mov eax, edi
mov dword [rsp + 0x38], 0x82067f37
mov dword [rsp + 0x3c], 0x18e22d00
bswap eax
mov dword [rsp + 0x40], eax
mov eax, ecx
bswap eax
mov dword [rsp + 0x44], eax
test ecx, ecx
jne 0x1400477f6
lea rdx, [rsi + 0x68]
lea ecx, [rbp + 8]
call fcn.1400381e0
mov rax, qword [rsi + 0x68]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov r8d, ebp
mov r9d, ebp
nop word [rax + rax]
mov ecx, dword [rdx]
lea rax, [rsp + 0x50]
add ecx, r8d
add r9d, ecx
mov ecx, dword [rdx + 4]
add ecx, r9d
add rdx, 8
add r8d, ecx
cmp rdx, rax
jb 0x140047810
mov eax, r9d
mov dword [rsi + 0x38], edi
bswap eax
mov byte [rsi + 0x55], bpl
lea rdx, [rsp + 0x38]
mov dword [rsi + 0x60], r9d
xor r9d, r9d
mov dword [rsi + 0x64], r8d
mov rcx, qword [rsi + 0x10]
mov dword [rsp + 0x50], eax
mov eax, r8d
bswap eax
mov dword [rsp + 0x54], eax
lea r8d, [r9 + 0x20]
mov byte [rsi + 0x43], 1
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
mov ebx, eax
test eax, eax
jne 0x140047acf
mov edx, dword [rsp + 0xd8]
cmp byte [rsi + 0x44], bpl
je 0x140047997
test edx, edx
je 0x140047997
mov rcx, qword [rsi + 0x10]
and edx, 0x13
mov rax, qword [rcx]
call qword [rax + Ordinal_41]
mov ebx, eax
test eax, eax
jne 0x140047acf
mov eax, dword [rsp + 0x20]
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsi + 0x10]
mov dword [rsp + 0x54], edi
mov qword [rsp + 0x70], r12
lea r12d, [rdi + 0x18]
movsxd r8, r12d
mov edi, eax
imul rdi, r8
mov qword [rsp + 0x68], r14
mov r14, r15
add rdi, 0x20
mov qword [rsp + 0x30], r8
mov r8d, dword [rsp + 0xd0]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], edx
test r15, r15
je 0x14004795d
nop word [rax + rax]
inc eax
mov dword [rsp + 0x20], eax
test r8d, r8d
je 0x140047916
mov r8d, dword [rsp + 0x24]
cmp qword [r14 + 0x18], rbp
je 0x140047919
mov r8d, ebp
mov r9, rdi
lea rcx, [rsp + 0x38]
mov rdx, r14
call fcn.1400475d0
mov ebx, eax
test eax, eax
jne 0x140047ac5
mov r8d, dword [rsp + 0xd0]
mov r13, r14
mov r14, qword [r14 + 0x18]
movsxd rax, r12d
add rdi, rax
mov eax, dword [rsp + 0x20]
test r14, r14
jne 0x140047900
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0xd8]
test r8d, r8d
je 0x140047a3d
test dl, 0x20
je 0x140047a0b
cmp byte [rsi + 0x45], bpl
je 0x140047a00
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x1400479ac
call rdx
cmp eax, 0x20
jge 0x1400479a0
mov eax, 0x200
jmp 0x1400479b1
mov eax, dword [rsp + 0x20]
jmp 0x1400478af
mov ecx, 0x10000
cmp eax, ecx
cmovg eax, ecx
jmp 0x1400479b1
mov eax, 0x1000
movsxd rcx, eax
lea r8, [rdi - 1]
add r8, rcx
mov rax, r8
cqo
idiv rcx
sub r8, rdx
mov qword [rsp + 0x48], r8
cmp rdi, r8
jge 0x140047a0b
mov r8d, dword [rsp + 0x24]
lea rcx, [rsp + 0x38]
mov r9, rdi
mov rdx, r13
call fcn.1400475d0
mov ebx, eax
test eax, eax
jne 0x140047ac5
movsxd rax, r12d
inc ebp
add rdi, rax
cmp rdi, qword [rsp + 0x48]
jl 0x1400479d0
jmp 0x140047a0b
mov rax, qword [rcx]
and edx, 0x13
call qword [rax + Ordinal_41]
mov ebx, eax
cmp byte [rsi + 0x43], 0
je 0x140047a3d
mov rdx, qword [rsi + 0x20]
test rdx, rdx
js 0x140047a3d
mov ecx, dword [rsp + 0x20]
add ecx, ebp
imul rcx, qword [rsp + 0x30]
add rcx, 0x20
cmp rcx, rdx
cmovg rdx, rcx
mov rcx, rsi
call fcn.1400468d0
mov byte [rsi + 0x43], 0
mov edi, dword [rsi + 0x58]
test r15, r15
je 0x140047a64
test ebx, ebx
jne 0x140047ac3
mov r8d, dword [r15 + 0x28]
inc edi
mov edx, edi
mov rcx, rsi
call fcn.1400456c0
mov r15, qword [r15 + 0x18]
mov ebx, eax
test r15, r15
jne 0x140047a45
test ebx, ebx
jne 0x140047ac3
test ebp, ebp
jle 0x140047a86
mov r8d, dword [r13 + 0x28]
inc edi
mov edx, edi
mov rcx, rsi
dec ebp
call fcn.1400456c0
mov ebx, eax
test eax, eax
je 0x140047a68
jmp 0x140047ac3
test ebx, ebx
jne 0x140047ac3
mov ecx, dword [rsp + 0x28]
mov edx, 0xff00
mov eax, ecx
mov dword [rsi + 0x58], edi
sar eax, 0x10
and cx, dx
or ax, cx
mov word [rsi + 0x56], ax
cmp dword [rsp + 0xd0], ebx
je 0x140047ac3
mov eax, dword [rsp + 0x24]
mov rcx, rsi
inc dword [rsi + 0x50]
mov dword [rsi + 0x5c], eax
call fcn.140045530
mov dword [rsi + 0x18], edi
mov eax, ebx
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140215090
add rsp, 0x78
pop r15
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret