Function at 0x180045b60
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov r12, qword [rcx + 0x10]
xor r10d, r10d
mov qword [rsp + 0x58], r12
mov r15d, r8d
mov dword [rbp + 0x60], r10d
mov rsi, rdx
mov dword [rbp + 0x78], r10d
mov r14, rcx
mov r13d, r10d
test r12, r12
jne 0x180045bae
xor eax, eax
jmp 0x180046b24
mov ecx, 0x94
mov ebx, 2
lea edx, [rcx + 0x13]
test rsi, rsi
je 0x180046b0a
movzx edi, byte [rsi]
cmp edi, ecx
ja 0x180045c68
je 0x180045fde
mov eax, 0x86
cmp edi, 0x39
jbe 0x180045dbe
cmp edi, 0x47
je 0x180045d31
cmp edi, 0x4d
je 0x180045cd7
cmp edi, 0x62
jbe 0x1800461f9
cmp edi, 0x6c
jbe 0x180045df9
cmp edi, 0x6d
je 0x180045cb6
cmp edi, 0x6e
je 0x180045e9c
cmp edi, 0x71
je 0x180045cc3
cmp edi, 0x75
je 0x180046b0a
cmp edi, eax
jne 0x1800461f9
cmp edi, eax
jne 0x180045e8c
mov rax, qword [rsi + 0x20]
mov rcx, qword [rax]
cmp dword [rcx], 1
je 0x180045e8c
mov r8d, dword [rcx]
lea rdx, str.sub_select_returns__d_columns___expected__d
mov rcx, r14
mov r9d, 1
call fcn.180018cf4
jmp 0x180046b21
cmp edi, edx
jbe 0x1800461a6
sub edi, 0xa8
je 0x180046134
sub edi, 1
je 0x180045cb6
sub edi, 1
je 0x1800460c6
sub edi, 1
je 0x1800460be
sub edi, 1
je 0x1800460aa
sub edi, 1
je 0x180046055
sub edi, 1
je 0x180045ff5
cmp edi, ebx
jne 0x1800461f9
mov rsi, qword [rsi + 0x10]
mov qword [rbp + 0x68], rsi
jmp 0x180045bbb
mov r8, qword [rsi + 8]
mov edx, r15d
mov rcx, r12
call fcn.180031c80
jmp 0x180046b21
mov rbx, qword [rsi + 0x40]
mov r9d, r15d
movsx r8d, word [rsi + 0x2c]
mov edx, 0x95
mov dword [rsp + 0x20], r10d
movsx ecx, word [rbx + 0x46]
inc ecx
imul ecx, dword [rsi + 0x28]
inc ecx
add r8d, ecx
mov rcx, r12
call fcn.180031c04
xor edx, edx
cmp word [rsi + 0x2c], dx
jl 0x180046b21
movsx rcx, word [rsi + 0x2c]
mov rax, qword [rbx + 8]
shl rcx, 5
cmp byte [rcx + rax + 0x19], 0x45
jne 0x180046b21
mov dword [rsp + 0x20], edx
jmp 0x180046699
cmp qword [r14 + 0x98], r10
jne 0x180045d4e
lea rdx, str.RAISE___may_only_be_used_within_a_trigger_program
mov rcx, r14
call fcn.180018cf4
jmp 0x180045ba7
mov al, byte [rsi + 1]
cmp al, bl
jne 0x180045d6d
mov rax, qword [r14 + 0x90]
mov rcx, r14
test rax, rax
cmovne rcx, rax
mov byte [rcx + 0x21], 1
mov al, byte [rsi + 1]
mov rbx, qword [rsi + 8]
mov r9d, 4
cmp al, r9b
jne 0x180045d9b
xor r8d, r8d
mov dword [rsp + 0x20], r10d
lea edx, [r9 + 0x41]
mov rcx, r12
call fcn.180031c04
xor r9d, r9d
mov r8, rbx
jmp 0x1800467db
mov byte [rsp + 0x28], r10b
mov r9, rbx
movsx r8d, al
mov edx, 0x713
mov rcx, r14
mov byte [rsp + 0x20], r10b
call fcn.18005277c
jmp 0x180046b21
cmp edi, 0x34
jae 0x18004644a
cmp edi, 0x2d
ja 0x180045eb9
je 0x18004643a
cmp edi, 0x13
je 0x180045e9c
cmp edi, 0x14
je 0x180045c33
cmp edi, 0x24
je 0x180045e35
lea eax, [rdi - 0x2b]
cmp eax, 1
ja 0x1800461f9
mov rdx, qword [rsi + 0x10]
lea r8, [rbp + 0x60]
mov rcx, r14
call fcn.180046c0c
mov rdx, qword [rsi + 0x18]
lea r8, [rbp + 0x78]
mov rcx, r14
mov ebx, eax
call fcn.180046c0c
mov r9d, ebx
mov dword [rsp + 0x20], r15d
mov edx, edi
mov r8d, eax
mov rcx, r12
call fcn.180031c04
jmp 0x1800464b9
mov rdx, qword [rsi + 0x10]
mov rcx, r14
call fcn.180045b60
mov ebx, eax
cmp eax, r15d
je 0x180045e63
and dword [rsp + 0x20], r13d
mov r9d, r15d
mov r8d, eax
mov edx, reloc.WLDAP32.dll_Ordinal_79
mov rcx, r12
call fcn.180031c04
mov ebx, r15d
mov rcx, qword [rsi + 8]
xor edx, edx
call fcn.18004df4c
and dword [rsp + 0x20], r13d
mov r8d, r15d
movsx r9d, al
mov edx, Ordinal_88
mov rcx, r12
call fcn.180031c04
jmp 0x180046640
mov rdx, rsi
mov rcx, r14
call fcn.180044d3c
jmp 0x180046b24
mov rdx, qword [rsi + 0x10]
lea r8, [rbp + 0x60]
mov rcx, r14
call fcn.180046c0c
and dword [rsp + 0x20], r13d
mov r9d, r15d
jmp 0x180045e23
cmp edi, 0x30
je 0x180045fc6
cmp edi, 0x31
je 0x180045f4b
lea eax, [rdi - 0x32]
cmp eax, 1
ja 0x1800461f9
mov edx, Ordinal_73
mov dword [rsp + 0x20], r10d
mov r9d, r15d
mov rcx, r12
lea r8d, [rdx - 0x45]
call fcn.180031c04
mov rdx, qword [rsi + 0x10]
lea r8, [rbp + 0x60]
mov rcx, r14
call fcn.180046c0c
xor esi, esi
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x20], esi
mov edx, edi
mov rcx, r12
call fcn.180031c04
mov r9d, r15d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea edx, [rsi + 0x46]
mov rcx, r12
mov ebx, eax
call fcn.180031c04
mov edx, ebx
mov rcx, r12
call fcn.1800325e0
mov r9, rax
mov eax, dword [r12 + 0x90]
mov dword [r9 + 8], eax
jmp 0x1800464b9
mov ebx, dword [r14 + 0x44]
xor r8d, r8d
mov r9d, r15d
mov dword [rsp + 0x20], r10d
mov rcx, r12
lea edi, [rbx - 2]
lea edx, [r8 + 0x49]
mov dword [r14 + 0x44], edi
call fcn.180031c04
mov r9d, edi
lea r8d, [rbx - 1]
mov rdx, rsi
mov rcx, r14
call fcn.180045090
xor esi, esi
mov r9d, r15d
mov rcx, r12
mov dword [rsp + 0x20], esi
lea edx, [rsi + 0x46]
lea r8d, [rsi + 1]
call fcn.180031c04
lea edx, [rbx - 1]
mov rcx, r12
call fcn.180031ff8
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r15d
lea edx, [rsi + 0x53]
mov rcx, r12
call fcn.180031c04
mov edx, edi
mov rcx, r12
call fcn.180031ff8
jmp 0x180046b21
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov rdx, rsi
mov rcx, r14
call fcn.180046f70
jmp 0x180046b21
mov rdx, qword [rsi + 8]
xor r8d, r8d
mov r9d, r15d
mov rcx, r12
call fcn.1800457a0
jmp 0x180046b21
mov r8d, dword [rsi + 0x28]
xor r9d, r9d
mov dil, byte [r14 + 0x23]
mov rcx, r12
mov dword [rsp + 0x20], r10d
lea edx, [r9 + 0x15]
call fcn.180031c04
mov byte [r14 + 0x23], r13b
mov r8d, r15d
mov rdx, qword [rsi + 0x10]
mov rcx, r14
mov ebx, eax
call fcn.180045b60
mov edx, ebx
mov byte [r14 + 0x23], dil
mov rcx, r12
mov r15d, eax
call fcn.1800325e0
mov ecx, dword [r12 + 0x90]
mov edx, ebx
mov dword [rax + 8], ecx
mov rcx, r12
call fcn.1800325e0
mov dword [rax + 0xc], r15d
jmp 0x180046b21
mov rdx, qword [rsi + 0x10]
cmp dword [rdx + 0x28], r10d
jne 0x180046072
mov rcx, r14
call fcn.180044d3c
mov rcx, qword [rsi + 0x10]
mov dword [rcx + 0x28], eax
mov rdx, qword [rsi + 0x10]
mov r8d, dword [rsi + 0x28]
test r8d, r8d
je 0x18004609e
mov rcx, rdx
call fcn.18004239c
cmp r8d, eax
je 0x18004609e
mov r9d, eax
lea rdx, str._d_columns_assigned__d_values
mov rcx, r14
call fcn.180018cf4
mov rdx, qword [rsi + 0x10]
movsx eax, word [rsi + 0x2c]
add eax, dword [rdx + 0x28]
jmp 0x180046b24
lea rdx, str.row_value_misused
mov rcx, r14
call fcn.180018cf4
jmp 0x180046b21
mov eax, dword [rsi + 0x28]
jmp 0x180046b24
mov rdx, qword [rsi + 0x10]
lea r8, [rbp + 0x60]
mov rcx, r14
call fcn.180046c0c
mov r8d, eax
xor r9d, r9d
mov rax, qword [rsi + 0x18]
jmp 0x1800460ef
test dword [rax + 4], 0x1000
je 0x1800460f4
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800460e2
mov rax, qword [rax + 8]
mov edx, r9d
cmp byte [rsi + 0x32], 0x2d
sete dl
mov cl, byte [rax + 4]
mov eax, r9d
test cl, cl
sete al
xor edx, eax
mov eax, r9d
test cl, cl
mov dword [rsp + 0x28], edx
mov r9d, r15d
mov edx, reloc.WLDAP32.dll_Ordinal_88
setne al
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.180031f14
jmp 0x1800464b9
mov rdx, qword [rsi + 0x10]
cmp byte [rdx], 0x96
jne 0x180046153
mov r8d, 1
mov r9d, r15d
mov rcx, r14
call fcn.180045834
jmp 0x180046b21
cmp byte [rdx], cl
jne 0x180046166
mov rdx, qword [rdx + 8]
mov r8d, 1
jmp 0x180045fe5
lea r8, [rbp + 0x60]
mov byte [rbp - 0x40], 0x96
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x3c], 0x4400
mov rcx, r14
call fcn.180046c0c
mov rdx, qword [rsi + 0x10]
lea r8, [rbp + 0x78]
mov rcx, r14
mov ebx, eax
call fcn.180046c0c
mov r9d, ebx
mov dword [rsp + 0x20], r15d
mov edx, 0x68
jmp 0x180045e25
je 0x1800467ea
mov ecx, edi
sub ecx, 0x95
je 0x180046781
sub ecx, 1
je 0x180046776
sub ecx, 1
je 0x180046702
sub ecx, 0xb
je 0x180046599
sub ecx, 1
je 0x18004656a
sub ecx, 1
je 0x18004652f
sub ecx, 1
je 0x180046511
cmp ecx, 1
je 0x18004643a
mov rax, qword [rsi + 0x20]
mov rdx, r10
mov r13, qword [r14]
mov rdi, r10
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rdx
lea rcx, [rax + 8]
mov qword [rsp + 0x48], r10
mov eax, dword [rax]
mov qword [rsp + 0x60], rcx
or rcx, 0xffffffffffffffff
add dword [r14 + 0x44], ecx
mov rbx, qword [rsi + 0x10]
mov ecx, dword [r14 + 0x44]
mov qword [rsp + 0x50], r13
mov dword [rbp + 0x78], eax
mov dword [rbp + 0x70], ecx
test rbx, rbx
je 0x1800462d0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call fcn.180042f00
mov rdi, rax
mov qword [rsp + 0x48], rax
xor eax, eax
cmp byte [r13 + 0x61], al
je 0x18004627e
test rdi, rdi
je 0x180046b21
mov rdx, rdi
mov rcx, r13
call fcn.180042d30
jmp 0x180046b21
lea r8, [rbp + 0x60]
mov rdx, rdi
mov rcx, r14
call fcn.180045ab8
mov rcx, rdi
mov edx, eax
call fcn.180041fc8
mov cl, byte [rax]
btr dword [rax + 4], 0xc
mov dword [rax + 0x28], edx
xor edx, edx
mov byte [rax + 0x32], cl
lea rcx, [rsp + 0x70]
mov byte [rax], 0xab
lea r8d, [rdx + 0x48]
call fcn.1800c4240
mov eax, dword [rbp + 0x78]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x40], rdx
xor r10d, r10d
mov byte [rsp + 0x70], Ordinal_54
mov qword [rbp - 0x80], rdi
dec eax
test eax, eax
jle 0x1800463e4
test rbx, rbx
je 0x180046366
mov r13, qword [rsp + 0x60]
lea edi, [rax - 1]
mov esi, dword [rbp + 0x70]
shr edi, 1
inc edi
mov ebx, dword [r14 + 0x44]
mov r9d, 0x10
mov rax, qword [r13]
dec ebx
mov r8d, ebx
mov qword [rbp - 0x78], rax
mov rcx, r14
mov dword [r14 + 0x44], ebx
call fcn.1800473f8
mov rdx, qword [r13 + 0x28]
mov r8d, r15d
mov rcx, r14
call fcn.180046cd4
and dword [rsp + 0x20], 0
xor r8d, r8d
mov r9d, esi
mov rcx, r12
lea edx, [r8 + 0xb]
call fcn.180031c04
mov edx, ebx
mov rcx, r12
call fcn.180031ff8
mov rdx, qword [rsp + 0x40]
lea r13, [r13 + 0x50]
sub rdi, 1
jne 0x1800462f2
mov rdi, qword [rsp + 0x48]
xor r10d, r10d
mov r13, qword [rsp + 0x50]
jmp 0x1800463e7
movsxd rsi, eax
test eax, eax
jle 0x1800463e4
mov r13, qword [rsp + 0x60]
dec rsi
mov edi, dword [rbp + 0x70]
shr rsi, 1
inc rsi
mov ebx, dword [r14 + 0x44]
mov r9d, 0x10
mov rdx, qword [r13]
dec ebx
mov r8d, ebx
mov dword [r14 + 0x44], ebx
mov rcx, r14
call fcn.1800473f8
mov rdx, qword [r13 + 0x28]
mov r8d, r15d
mov rcx, r14
call fcn.180046cd4
and dword [rsp + 0x20], 0
xor r8d, r8d
mov r9d, edi
mov rcx, r12
lea edx, [r8 + 0xb]
call fcn.180031c04
mov edx, ebx
mov rcx, r12
call fcn.180031ff8
lea r13, [r13 + 0x50]
sub rsi, 1
jne 0x18004637e
mov rdi, qword [rsp + 0x48]
xor r10d, r10d
mov r13, qword [rsp + 0x50]
mov esi, dword [rbp + 0x70]
movsxd rax, dword [rbp + 0x78]
test al, 1
je 0x18004640a
lea rdx, [rax + rax*4]
mov r8d, r15d
mov rax, qword [rsp + 0x58]
mov rcx, r14
mov rdx, qword [rax + rdx*8 - 0x20]
call fcn.180046cd4
jmp 0x180046421
xor r8d, r8d
mov dword [rsp + 0x20], r10d
mov r9d, r15d
mov rcx, r12
lea edx, [r8 + 0x49]
call fcn.180031c04
test rdi, rdi
je 0x1800468f3
mov rdx, rdi
mov rcx, r13
call fcn.180042d30
jmp 0x1800468f3
sub edi, 0x2d
mov r13d, Ordinal_133
neg edi
sbb edi, edi
add edi, 0x35
mov r12, qword [rsi + 0x10]
mov rcx, r12
call fcn.18004239c
mov rcx, r14
cmp eax, 1
jle 0x180046473
mov r9b, dil
mov byte [rsp + 0x20], r13b
mov rdx, rsi
call fcn.180042518
jmp 0x180046b21
lea r8, [rbp + 0x60]
mov rdx, r12
call fcn.180046c0c
mov rdx, qword [rsi + 0x18]
lea r8, [rbp + 0x78]
mov rcx, r14
mov ebx, eax
call fcn.180046c0c
mov r8, qword [rsi + 0x18]
or r13d, 0x20
mov dword [rsp + 0x38], r13d
mov r9d, edi
mov dword [rsp + 0x30], r15d
mov rdx, r12
mov dword [rsp + 0x28], eax
mov rcx, r14
mov dword [rsp + 0x20], ebx
call fcn.1800422dc
mov ecx, dword [rbp + 0x60]
test ecx, ecx
je 0x1800464d8
cmp byte [r14 + 0x1f], 8
jae 0x1800464d8
movzx eax, byte [r14 + 0x1f]
mov dword [r14 + rax*4 + 0xbc], ecx
inc byte [r14 + 0x1f]
mov ecx, dword [rbp + 0x78]
test ecx, ecx
je 0x180046b21
cmp byte [r14 + 0x1f], 8
jae 0x180046b21
movzx eax, byte [r14 + 0x1f]
mov dword [r14 + rax*4 + 0xbc], ecx
inc byte [r14 + 0x1f]
jmp 0x180046b21
test dword [rsi + 4], 0x1000
je 0x180046516
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x180046504
mov rax, qword [rsi + 8]
mov r8d, r10d
mov edx, Ordinal_73
cmp byte [rax + 4], r10b
sete r8b
jmp 0x180046b11
mov rcx, qword [rsi + 0x38]
movsx rax, word [rsi + 0x2e]
shl rax, 5
add rax, qword [rcx + 0x20]
cmp byte [rcx], r10b
jne 0x18004654d
mov eax, dword [rax + 0x14]
jmp 0x180046b24
cmp byte [rcx + 1], r10b
je 0x180046599
mov r9d, dword [rax + 0x10]
mov edx, 0x5a
mov r8d, dword [rcx + 8]
mov dword [rsp + 0x20], r15d
jmp 0x180046b19
mov rdx, qword [rsi + 0x38]
test rdx, rdx
jne 0x180046583
mov r8, qword [rsi + 8]
lea rdx, str.misuse_of_aggregate:__s__
jmp 0x180046b00
movsx rax, word [rsi + 0x2e]
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x30]
mov eax, dword [rax + rcx*8 + 0x10]
jmp 0x180046b24
test byte [rsi + 4], 8
mov r8d, dword [rsi + 0x28]
je 0x180046647
mov rdx, qword [rsi + 0x10]
mov r8d, r15d
mov rcx, r14
call fcn.180045b60
xor r14d, r14d
mov ebx, eax
cmp word [rsi + 0x2c], r14w
jl 0x1800465da
mov rcx, qword [rsi + 0x40]
movsx r8, word [rsi + 0x2c]
shl r8, 5
mov rdx, qword [rcx + 8]
mov al, byte [r8 + rdx + 0x19]
jmp 0x1800465dc
mov al, Ordinal_69
movsx edi, al
cmp edi, 0x41
jle 0x180046640
cmp ebx, r15d
je 0x180046604
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov r8d, ebx
mov edx, reloc.WLDAP32.dll_Ordinal_79
mov rcx, r12
call fcn.180031c04
mov ebx, r15d
mov r9d, 1
mov dword [rsp + 0x20], r14d
mov r8d, ebx
mov rcx, r12
lea edx, [r9 + 0x5a]
call fcn.180031c04
lea ecx, [rdi*2 - 0x84]
or r9, 0xffffffffffffffff
movsxd r8, ecx
mov edx, eax
lea rcx, str.BCDE
add r8, rcx
mov rcx, r12
call fcn.1800324f4
mov eax, ebx
jmp 0x180046b24
test r8d, r8d
jns 0x1800466b8
mov r9d, dword [r14 + 0x40]
test r9d, r9d
jns 0x1800466b4
movzx r8d, word [rsi + 0x2c]
test r8w, r8w
js 0x1800466a8
mov rax, qword [rsi + 0x40]
movsx rdx, r8w
shl rdx, 5
mov rcx, qword [rax + 8]
cmp byte [rdx + rcx + 0x19], 0x45
jne 0x1800466a8
movsx r8d, r8w
mov edx, reloc.WLDAP32.dll_Ordinal_79
sub r8d, r9d
mov dword [rsp + 0x20], r10d
mov r9d, r15d
mov rcx, r12
call fcn.180031c04
xor eax, eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r15d
lea edx, [r9 + 0x54]
jmp 0x180046b19
movsx eax, r8w
sub eax, r9d
jmp 0x180046b24
lea r8d, [r9 - 1]
movsx r9d, word [rsi + 0x2c]
mov rcx, r12
mov rdx, qword [rsi + 0x40]
mov bl, byte [rsi + 0x32]
mov dword [rsp + 0x20], r15d
call fcn.180045954
test bl, bl
je 0x180046b21
movsxd rax, dword [r12 + 0x90]
test eax, eax
jle 0x180046b21
lea rcx, [rax + rax*2]
movzx edx, bl
mov rax, qword [r12 + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x180046b21
movsx r8d, word [rsi + 0x2c]
mov r9d, r15d
mov edx, Ordinal_79
mov dword [rsp + 0x20], r10d
mov rcx, r12
call fcn.180031c04
mov rax, qword [rsi + 8]
xor r8d, r8d
cmp byte [rax + 1], r8b
je 0x180046b21
mov rdx, qword [r14 + 0x118]
test rdx, rdx
jne 0x18004673e
mov rax, r8
jmp 0x18004675f
movsx ecx, word [rsi + 0x2c]
movsxd rax, ebx
cmp dword [rdx + rax*4], ecx
je 0x180046755
add ebx, dword [rdx + rax*4 + 4]
cmp ebx, dword [rdx + 4]
jl 0x180046742
jmp 0x180046739
lea eax, [rbx + 2]
movsxd rcx, eax
lea rax, [rdx + rcx*4]
mov dword [rdx], r8d
mov rcx, r12
or r8, 0xffffffffffffffff
mov rdx, rax
call fcn.18003257c
jmp 0x180046b21
xor r8d, r8d
mov rdx, rsi
jmp 0x180046143
mov rdx, qword [rsi + 8]
add rdx, rbx
jne 0x18004678f
mov ecx, r10d
jmp 0x1800467a2
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], r10b
jne 0x180046793
and ecx, 0x3fffffff
lea ebx, [rcx - 1]
mov rcx, qword [r12]
mov r8d, ebx
call fcn.1800199d0
mov rdi, rax
mov r9d, r15d
mov eax, ebx
mov rcx, r12
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
xor eax, eax
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x4b]
call fcn.180031c04
mov r9d, 0xfffffff9
mov r8, rdi
mov edx, eax
mov rcx, r12
call fcn.1800324f4
jmp 0x180046b21
test dword [rsi + 4], 0x1000000
mov rax, qword [r14]
mov dword [rbp + 0x78], r10d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r10
mov r13b, byte [rax + 0x5e]
je 0x180046814
mov rax, qword [rsi + 0x40]
mov eax, dword [rax + 0x60]
jmp 0x180046b24
cmp byte [r14 + 0x23], r10b
je 0x180046847
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
call fcn.180043dd0
xor r10d, r10d
test eax, eax
je 0x180046842
or r8, 0xffffffffffffffff
mov rdx, rsi
mov rcx, r14
call fcn.180046b38
jmp 0x180046b24
mov rax, qword [rsp + 0x48]
test dword [rsi + 4], 0x4000
je 0x1800468fa
mov rdi, r10
mov qword [rsp + 0x50], r10
mov ebx, r10d
mov rcx, qword [rsi + 8]
mov r9b, r13b
mov qword [rbp + 0x60], rcx
mov rdx, rcx
mov rcx, rax
mov byte [rsp + 0x20], r10b
mov r8d, ebx
call fcn.180053450
xor ecx, ecx
mov r13, rax
test rax, rax
je 0x180046af5
cmp qword [rax + 0x20], rcx
jne 0x180046af5
test dword [rax + 4], 0x200
je 0x180046913
or rcx, 0xffffffffffffffff
mov r8d, r15d
add dword [r14 + 0x44], ecx
mov rcx, r14
mov rdx, qword [rdi + 8]
mov esi, dword [r14 + 0x44]
call fcn.180046cd4
cmp ebx, 1
jle 0x1800468f3
add rdi, 0x30
dec ebx
xor eax, eax
mov r9d, esi
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rcx, r12
lea edx, [rax + 0x33]
call fcn.180031c04
mov rdx, qword [rdi]
mov r8d, r15d
mov rcx, r14
call fcn.180046cd4
lea rdi, [rdi + 0x28]
sub rbx, 1
jne 0x1800468c4
mov edx, esi
jmp 0x180045fb9
mov rdi, qword [rsi + 0x20]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x18004685c
mov ebx, dword [rdi]
jmp 0x18004685f
test dword [rax + 4], 0x400
je 0x180046930
mov rdx, qword [rdi + 8]
mov r8d, r15d
mov rcx, r14
call fcn.180045b60
jmp 0x180046b24
mov dword [rbp + 0x60], ecx
mov eax, ecx
test ebx, ebx
jle 0x1800469aa
lea r12, [rdi + 8]
mov r15d, ecx
mov edi, eax
cmp eax, 0x20
jge 0x180046962
mov rcx, qword [r12]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.180043dd0
test eax, eax
mov eax, dword [rbp + 0x60]
je 0x180046962
bts r15d, eax
test byte [r13 + 4], 0x20
je 0x180046980
test rdi, rdi
jne 0x180046980
mov rdx, qword [r12]
mov rcx, r14
call fcn.180041ff4
mov rdi, rax
mov eax, dword [rbp + 0x60]
inc eax
add r12, 0x28
mov dword [rbp + 0x60], eax
cmp eax, ebx
jl 0x180046942
mov rsi, qword [rbp + 0x68]
xor ecx, ecx
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x40], rdi
mov rdi, qword [rsp + 0x50]
mov dword [rbp + 0x78], r15d
mov r15d, dword [rbp + 0x70]
test rdi, rdi
je 0x180046a0c
cmp dword [rbp + 0x78], ecx
je 0x1800469c3
mov eax, dword [r14 + 0x38]
lea edx, [rax + 1]
add eax, ebx
mov dword [r14 + 0x38], eax
jmp 0x1800469cf
mov edx, ebx
mov rcx, r14
call fcn.1800483d4
mov edx, eax
test byte [r13 + 4], 0xc0
mov dword [rbp + 0x70], edx
je 0x1800469f2
mov r8, qword [rdi + 8]
mov cl, byte [r8]
add cl, 0x5e
test cl, 0xfd
jne 0x1800469f2
mov al, byte [r13 + 4]
and al, 0xc0
mov byte [r8 + 0x32], al
mov r8d, edx
mov byte [rsp + 0x20], 3
mov rdx, rdi
xor r9d, r9d
mov rcx, r14
call fcn.180046e00
xor ecx, ecx
jmp 0x180046a0f
mov dword [rbp + 0x70], ecx
cmp ebx, 2
jl 0x180046a29
mov eax, 0x80
test byte [rsi + 4], al
je 0x180046a29
mov r9, qword [rdi + 0x30]
mov rsi, qword [rsp + 0x48]
jmp 0x180046a36
mov rsi, qword [rsp + 0x48]
test ebx, ebx
jle 0x180046a49
mov r9, qword [rdi + 8]
mov r8d, ebx
mov rdx, r13
mov rcx, rsi
call fcn.18006e828
xor ecx, ecx
mov r13, rax
test byte [r13 + 4], 0x20
je 0x180046a87
mov rdi, qword [rsp + 0x40]
test rdi, rdi
jne 0x180046a5e
mov rdi, qword [rsi + 0x10]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0x52]
call fcn.180031c04
mov r9d, 0xfffffffe
mov r8, rdi
mov edx, eax
mov rcx, r12
call fcn.1800324f4
mov eax, dword [r14 + 0x40]
mov rcx, r12
mov edi, dword [rbp + 0x70]
neg eax
mov esi, dword [rbp + 0x78]
mov r9d, edi
sbb edx, edx
mov dword [rsp + 0x20], r15d
add edx, 0x3f
mov r8d, esi
call fcn.180031c04
mov r9d, 0xfffffff8
mov r8, r13
mov edx, eax
mov rcx, r12
call fcn.1800324f4
movsxd rax, dword [r12 + 0x90]
test eax, eax
jle 0x180046ade
lea rcx, [rax + rax*2]
movzx edx, bl
mov rax, qword [r12 + 0x88]
mov word [rax + rcx*8 - 0x16], dx
test ebx, ebx
je 0x180046b21
test esi, esi
jne 0x180046b21
mov r8d, ebx
mov edx, edi
mov rcx, r14
call fcn.180048428
jmp 0x180046b21
mov r8, qword [rbp + 0x60]
lea rdx, str.unknown_function:__s__
mov rcx, r14
call fcn.180018cf4
jmp 0x180046b21
xor r8d, r8d
lea edx, [r8 + 0x49]
mov dword [rsp + 0x20], r10d
mov r9d, r15d
mov rcx, r12
call fcn.180031c04
mov eax, r15d
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret