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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x78], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x6b], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x6a], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
sub rax, 0x34
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x3c], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0x10], rcx
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov word [rcx + 0x68], ax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x18022832e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0xb8]
cmp dword [rsp + 0x20], eax
jge 0x180228547
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x88], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x80], 0
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0xd0]
mov r9d, dword [rsp + 0x58]
movzx r8d, word [rcx + rax*2]
movzx edx, word [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
call fcn.180227850
movsx eax, al
test eax, eax
je 0x18022839b
mov al, 1
jmp 0x180228587
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0xd0]
movzx eax, word [rcx + rax*2]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
dec eax
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x5c]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x180228440
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x60]
cmp dword [rax + 0x5c], ecx
jl 0x180228440
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x64]
cmp dword [rax + 0x5c], ecx
jg 0x180228440
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x180228440
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x80]
movzx eax, word [rax + 0x18]
and eax, 8
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x70]
movzx ecx, word [rcx + 0x18]
and ecx, 8
cmp eax, ecx
jne 0x180228440
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
sub rax, 4
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
cmp qword [rcx + 0x30], rax
je 0x1802284bd
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x70]
movzx eax, word [rax + 0x18]
and eax, 8
test eax, eax
je 0x1802284bd
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
neg eax
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x5c]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x5c]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 8]
jl 0x1802284ad
mov byte [rsp + 0x31], 1
jmp 0x1802284b2
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
jmp 0x180228504
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 4]
lea eax, [rax + rcx - 1]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 4]
neg ecx
and eax, ecx
mov rcx, qword [rsp + 0x50]
sub eax, dword [rcx + 0x5c]
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 8]
jl 0x1802284f6
mov byte [rsp + 0x32], 1
jmp 0x1802284fb
mov byte [rsp + 0x32], 0
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x30], al
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.180225a70
movsx eax, al
test eax, eax
je 0x18022851e
mov al, 1
jmp 0x180228587
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x180228542
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x80]
mov qword [rax + 0x28], rcx
jmp 0x180228324
mov rcx, qword [rsp + 0x50]
call fcn.180225d30
movsx eax, al
test eax, eax
je 0x18022855c
mov al, 1
jmp 0x180228587
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x28]
cmp qword [rax + 0x30], rcx
jae 0x18022857a
mov dword [rsp + 0x34], 0
jmp 0x180228582
mov dword [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
add rsp, 0x40
pop rdi
ret