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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov eax, ecx
mov dword [rsp + 0xc0], ecx
lea rcx, [rax + rax*4]
mov qword [rsp + 0xc8], rdx
shl rcx, 4
mov dword [rsp + 0xd0], r8d
mov qword [rsp + 0xd8], r9
call fcn.00474400
cmp dword [rsp + 0xc0], 1
mov qword [rax], 0x5d6
mov rdi, rax
mov qword [rax + 8], 0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc8]
mov qword [rdi + 0x28], 0
mov qword [rdi + 0x30], 0
mov qword [rdi + 0x38], 0
mov rax, qword [rax]
mov qword [rdi + 0x40], 1
mov qword [rdi + 0x48], 1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
jbe 0x40b8e4
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x20], 1
shr eax, 0x13
xor eax, 1
and eax, 1
mov byte [rsp + 0x5f], al
nop word cs:[rax + rax]
mov eax, dword [rsp + 0x20]
mov rsi, qword [rsp + 0xc8]
lea r15, [rsi + rax*8]
mov eax, dword [rsp + 0x24]
mov r14, qword [r15]
mov rsi, qword [rsp + 0x48]
lea rax, [rax + rax*4]
shl rax, 4
cmp byte [r14], 0x2d
lea r13, [rsi + rax]
jne 0x40af00
cmp byte [r14 + 1], 0
je 0x40af00
mov edx, dword [rsp + 0xd0]
lea rcx, [r14 + 1]
mov dword [rsp + 0x64], 1
call fcn.00409e50
cmp rax, 0x5d4
jne 0x40b730
mov esi, 5
xor ebp, ebp
xor r12d, r12d
mov qword [rsp + 0x50], r13
lea rax, [0x00495cac]
mov dword [rsp + 0x58], 0
lea rbx, [0x00496018]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 2
lea rdi, str._Wno_
jmp 0x40ab18
mov r14, qword [r15 + 8]
test r14, r14
je 0x40ab5b
mov rsi, qword [rsp + 0x40]
mov rdx, rbp
mov rcx, r14
mov r8, rsi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40ab5b
lea r9, [r15 + 8]
mov edi, 1
cmp byte [rsp + 0x38], 0
je 0x40b1b3
cmp byte [r14 + rsi], 0
jne 0x40b1b3
mov r14d, 0x5d4
xor edx, edx
add r12d, 1
add rbx, 0x20
cmp r12d, 0x11
ja 0x40ab7a
test dl, dl
jne 0x40ab7a
mov rax, qword [rbx - 8]
mov rdi, qword [rbx - 0x18]
mov rbp, qword [rbx - 0x10]
mov r14, rax
mov qword [rsp + 0x30], rax
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rcx, r14
mov rsi, rax
call sub.msvcrt.dll_strlen
mov r14, qword [r15]
mov qword [rsp + 0x28], rax
movzx edx, byte [rbx + 1]
movzx eax, byte [rbx]
xor edx, 1
test rbp, rbp
mov byte [rsp + 0x38], al
movzx r13d, dl
je 0x40b0d0
mov rcx, rbp
call sub.msvcrt.dll_strlen
mov r8, rsi
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x64], r13d
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x40aa80
add r12d, 1
xor edx, edx
add rbx, 0x20
cmp r12d, 0x11
mov r14d, 0x5d4
mov edi, 1
jbe 0x40aae1
cmp r14, 0x5d4
mov r13, qword [rsp + 0x50]
mov dword [rsp + 0x30], edi
je 0x40b540
mov eax, dword [rsp + 0x64]
lea rbp, [r14 + r14*2]
mov rdx, qword [0x005b9230]
shl rbp, 5
add rbp, rdx
test eax, eax
movzx ecx, byte [rbp + 0x40]
jne 0x40abb6
test cl, cl
js 0x40b763
lea r8, [r14 + r14*2]
mov esi, dword [rsp + 0x30]
mov edi, ecx
shl r8, 5
and edi, 1
add r8, rdx
mov r10, qword [r8 + 0x18]
mov dword [rsp + 0x28], edi
mov r8d, dword [r8 + 0x3c]
add esi, 1
mov edi, r8d
and edi, 0x400000
and r8d, 0x800000
je 0x40b261
test cl, 0x20
jne 0x40b250
lea r8, [r14 + r14*2]
shl r8, 5
movzx r8d, byte [rdx + r8 + 0x40]
shr r8b, 1
and r8d, 3
add r8d, 1
test edi, edi
jne 0x40b450
mov r9d, esi
mov r12, qword [r15 + r9*8]
mov r9, r12
jmp 0x40ac29
mov r9, qword [r15 + r9*8]
test r9, r9
je 0x40b7e0
add edi, 1
lea r9d, [rsi + rdi]
cmp r8d, edi
ja 0x40ac25
mov esi, r9d
test r12, r12
je 0x40b7c9
lea r9, [r14 + r14*2]
mov edi, r8d
shl r9, 5
movzx r9d, word [rdx + r9 + 0x30]
cmp r9w, 0x5d3
jne 0x40b28f
nop word [rax + rax]
mov eax, dword [rbp + 0x3c]
mov edx, eax
and edx, dword [rsp + 0xd0]
je 0x40b3c4
test eax, 0x100000
je 0x40aca0
test eax, 0x807ff
je 0x40aca0
and edx, 0xffcfffff
je 0x40b3c4
nop dword [rax]
test r12, r12
je 0x40b3d2
movzx eax, byte [rbp + 0x41]
test al, 8
je 0x40ad71
mov rcx, r12
mov qword [rsp + 0x38], r10
call sub.msvcrt.dll_strlen
mov rdx, qword [0x005c70b8]
lea r8, [rax + 1]
mov rbx, rax
mov rax, qword [0x005c70c0]
mov r10, qword [rsp + 0x38]
mov rcx, rax
sub rcx, rdx
cmp r8, rcx
ja 0x40b7f0
mov rcx, qword [0x005c70b0]
add rdx, r8
cmp rdx, rcx
je 0x40b834
mov r8, qword [0x005c70d0]
mov r11, rax
add rdx, r8
not r8
and rdx, r8
mov r8, qword [0x005c70a8]
mov r9, rdx
mov qword [0x005c70b8], rdx
sub r9, r8
sub r11, r8
cmp r9, r11
jbe 0x40ad37
mov qword [0x005c70b8], rax
mov rdx, rax
xor eax, eax
test rbx, rbx
mov qword [0x005c70b0], rdx
mov r8, qword [0x005b91d0]
je 0x40b943
movzx edx, byte [r12 + rax]
movzx edx, byte [r8 + rdx]
mov byte [rcx + rax], dl
add rax, 1
cmp rbx, rax
jne 0x40ad50
mov byte [rcx + rbx], 0
movzx eax, byte [rbp + 0x41]
mov r12, rcx
test al, 2
jne 0x40b6a0
mov eax, dword [rsp + 0x64]
cmp dword [rbp + 0x48], 5
je 0x40b5a2
mov dword [r13 + 0x48], eax
mov eax, dword [rsp + 0x28]
cmp r14, 0x5d4
mov qword [r13], r14
mov qword [r13 + 0x10], r12
mov qword [r13 + 8], r10
mov dword [r13 + 0x4c], eax
je 0x40b960
lea eax, [rsi - 1]
cmp eax, 3
mov dword [rsp + 0x38], eax
ja 0x490acb
mov eax, esi
mov qword [rsp + 0x28], rax
lea rax, [r14 - 0x5d4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
xor ebx, ebx
xor ebp, ebp
mov qword [r13 + 0x40], rax
cmp esi, ebx
jbe 0x40b460
mov rcx, qword [r15 + rbx*8]
cmp r14, 0x5d4
mov eax, 0
cmove rax, rcx
mov qword [r13 + rbx*8 + 0x20], rax
call sub.msvcrt.dll_strlen
lea rdx, [rax + 1]
test rax, rax
mov eax, 3
cmove rdx, rax
add rbp, rdx
add rbx, 1
cmp rbx, 4
jne 0x40addc
cmp qword [rsp + 0x40], 1
ja 0x40b483
mov rdx, qword [0x005c70c0]
mov rax, qword [0x005c70b8]
mov rcx, rdx
sub rcx, rax
cmp rcx, rbp
jb 0x40b500
mov r12, qword [0x005c70b0]
add rax, rbp
cmp rax, r12
je 0x40b530
mov rcx, qword [0x005c70d0]
mov rdi, rdx
add rax, rcx
not rcx
and rax, rcx
mov r8, rax
mov qword [0x005c70b8], rax
mov rax, qword [0x005c70a8]
mov rcx, r8
sub rcx, rax
sub rdi, rax
cmp rcx, rdi
jbe 0x40ae97
mov qword [0x005c70b8], rdx
mov r8, rdx
mov ebx, dword [rsp + 0x38]
mov qword [0x005c70b0], r8
mov edi, esi
xor ebp, ebp
mov qword [r13 + 0x18], r12
mov r14, qword [r15 + rbp*8]
mov rcx, r14
call sub.msvcrt.dll_strlen
test rax, rax
mov r13, rax
jne 0x40b470
lea rax, [r12 + 2]
mov r10d, 0x2222
mov word [r12], r10w
add rax, r13
cmp ebx, ebp
lea r12, [rax + 1]
setne dl
add rbp, 1
shl edx, 5
cmp rdi, rbp
mov byte [rax], dl
jne 0x40aeaa
mov ebx, dword [rsp + 0x24]
add ebx, 1
mov edi, ebx
jmp 0x40af52
mov ebx, dword [rsp + 0x24]
mov qword [r13 + 0x10], r14
mov esi, 1
mov qword [r13], 0x5d7
mov qword [r13 + 8], 0
mov qword [r13 + 0x18], r14
add ebx, 1
mov qword [r13 + 0x20], r14
mov qword [r13 + 0x28], 0
mov edi, ebx
mov qword [r13 + 0x30], 0
mov qword [r13 + 0x38], 0
mov qword [r13 + 0x40], 1
mov qword [r13 + 0x48], 1
add dword [rsp + 0x20], esi
mov dword [rsp + 0x24], ebx
mov eax, dword [rsp + 0x20]
cmp eax, dword [rsp + 0xc0]
jb 0x40a9e0
mov rax, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0x48]
mov qword [rax], rsi
mov rax, qword [rsp + 0xe0]
mov dword [rax], ebx
mov eax, ebx
lea rcx, [rax + rax*4]
shl rcx, 4
call fcn.00474400
test ebx, ebx
mov rsi, rax
je 0x40b930
mov rax, qword [rsp + 0x48]
mov r8d, 1
xor ebp, ebp
xor ebx, ebx
mov r15, qword [0x005b9240]
mov r12, qword [0x005b9230]
jmp 0x40b047
jb 0x40b100
lea edx, [rcx - 0x5d4]
lea r10, [rax + 0x50]
cmp edx, 3
ja 0x40b100
mov rcx, qword [rax]
mov edx, ebx
add ebx, 1
lea rdx, [rdx + rdx*4]
shl rdx, 4
add rdx, rsi
cmp edi, r8d
mov qword [rdx], rcx
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov rcx, qword [rax + 0x10]
mov qword [rdx + 0x10], rcx
mov rcx, qword [rax + 0x18]
mov qword [rdx + 0x18], rcx
mov rcx, qword [rax + 0x20]
mov qword [rdx + 0x20], rcx
mov rcx, qword [rax + 0x28]
mov qword [rdx + 0x28], rcx
mov rcx, qword [rax + 0x30]
mov qword [rdx + 0x30], rcx
mov rcx, qword [rax + 0x38]
mov qword [rdx + 0x38], rcx
mov rcx, qword [rax + 0x40]
mov rax, qword [rax + 0x48]
mov qword [rdx + 0x40], rcx
mov qword [rdx + 0x48], rax
lea edx, [r8 + 1]
mov rax, r10
jbe 0x40b079
mov r8d, edx
test dword [rax + 0x4c], 0xfffffffb
lea edx, [r8 - 1]
lea r10, [rax + 0x50]
jne 0x40afda
mov rcx, qword [rax]
cmp ecx, 0x266
jne 0x40afc1
lea r10, [rax + 0x50]
cmp edi, r8d
mov ebp, edx
lea edx, [r8 + 1]
mov rax, r10
ja 0x40b044
test ebp, ebp
jne 0x40b600
mov eax, ebx
lea rdi, [rax + rax*4]
shl rdi, 4
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
mov rcx, rsi
mov rdx, rdi
call fcn.00474480
mov rsi, qword [rsp + 0xd8]
mov qword [rsi], rax
mov rax, qword [rsp + 0xe0]
mov dword [rax], ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, rsi
mov rdx, rdi
mov rcx, r14
mov dword [rsp + 0x64], r13d
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x40b242
mov r14d, 0x5d4
xor edx, edx
xor edi, edi
jmp 0x40aacf
mov r13d, dword [r15]
cmp ecx, r13d
jae 0x490a6b
lea r10, [rax + 0x50]
mov edx, ecx
lea rdx, [rdx + rdx*2]
shl rdx, 5
add rdx, r12
mov r9d, dword [rdx + 0x38]
test r9d, r9d
js 0x40afda
test byte [rdx + 0x3e], 0x40
jne 0x40afda
cmp edi, r8d
jbe 0x40b96e
mov r9, r10
mov r11d, r8d
jmp 0x40b152
add r11d, 1
add r9, 0x50
cmp edi, r11d
jbe 0x40b19e
test dword [r9 + 0x4c], 0xfffffffb
jne 0x40b145
mov rdx, qword [r9]
cmp r13d, edx
jbe 0x40b145
mov r14d, edx
lea r14, [r14 + r14*2]
shl r14, 5
add r14, r12
cmp dword [r14 + 0x38], 0
js 0x40b145
test byte [r14 + 0x3e], 0x40
jne 0x40b145
mov r14d, edx
jmp 0x40b18a
cmp r14d, edx
je 0x40b145
movsxd rdx, edx
lea rdx, [rdx + rdx*2]
shl rdx, 5
mov edx, dword [r12 + rdx + 0x38]
cmp ecx, edx
jne 0x40b185
cmp edi, r11d
je 0x40afda
lea edx, [r8 + 1]
mov rax, r10
jmp 0x40b044
mov rcx, r14
mov qword [rsp + 0x38], r9
mov r13d, 1
call sub.msvcrt.dll_strlen
mov rcx, r13
sub r13, rsi
mov r14, rax
mov eax, esi
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x58], eax
cdqe
sub rcx, rax
add rcx, r14
call fcn.00474400
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_memcpy
mov r9, qword [rsp + 0x38]
lea r8, [r13 + r14]
mov rcx, qword [rsp + 0x28]
add rsi, qword [r9]
add rcx, rbp
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov edx, dword [rsp + 0xd0]
lea rcx, [rbp + 1]
call fcn.00409e50
mov rcx, rbp
mov r14, rax
call sub.msvcrt.dll_free
cmp r14, 0x5d4
setne dl
jmp 0x40aacf
mov r9, r15
xor edi, edi
jmp 0x40aab1
test dword [rsp + 0xd0], 0x80000
je 0x40abf8
test edi, edi
jne 0x40b3e0
xor r12d, r12d
lea r8, [r14 + r14*2]
shl r8, 5
movzx r9d, word [rdx + r8 + 0x30]
cmp r9w, 0x5d3
je 0x40ac70
test cl, 8
jne 0x40ac70
movzx r8d, r9w
cmp r8, 0x5d5
je 0x40b6f0
lea rbp, [r8 + r8*2]
shl rbp, 5
add rbp, rdx
cmp word [rbp + 0x30], 0x5d3
je 0x40b2bd
test byte [rbp + 0x40], 8
je 0x490a83
lea r9, [r14 + r14*2]
shl r9, 5
add r9, rdx
mov rbx, qword [r9 + 0x28]
mov r9, qword [r9 + 0x20]
test rbx, rbx
je 0x40b840
test r9, r9
je 0x490a0b
test r12, r12
jne 0x490b2b
and ecx, 0x10
jne 0x490b43
test eax, eax
mov dword [rsp + 0x64], 1
cmovne rbx, r9
mov r12, rbx
lea rax, [r8 + r8*2]
xor r9d, r9d
shl rax, 5
add rax, rdx
mov ecx, dword [rax + 0x3c]
test ecx, 0x800000
je 0x40b32e
test byte [rax + 0x40], 0x20
mov r9d, 1
jne 0x40b770
cmp edi, 1
jbe 0x40b77f
lea rax, [r8 + r8*2]
shl rax, 5
movzx eax, byte [rdx + rax + 0x40]
shr al, 1
and eax, 3
add eax, 1
cmp eax, edi
jne 0x490a23
test byte [rsp + 0x28], 2
jne 0x40b379
and ecx, 0x400000
jne 0x40b7a0
test r9b, r9b
jne 0x40b7a0
test r12, r12
jne 0x490ab3
lea rax, [r8 + r8*2]
shl rax, 5
mov rax, qword [rdx + rax + 0x18]
test rax, rax
je 0x40b397
test r10, r10
jne 0x490afb
mov r10, rax
lea rax, [r8 + r8*2]
mov r14, r8
shl rax, 5
test byte [rdx + rax + 0x40], 1
je 0x40ac70
mov eax, dword [rbp + 0x3c]
or dword [rsp + 0x28], 1
mov edx, eax
and edx, dword [rsp + 0xd0]
jne 0x40ac82
or dword [rsp + 0x28], 4
test r12, r12
jne 0x40aca9
mov eax, dword [rsp + 0x64]
jmp 0x40ad87
xor edi, edi
xor ebx, ebx
lea r8, [r14 + r14*2]
movsxd r12, dword [rsp + 0x58]
shl r8, 5
mov r9d, dword [rsp + 0x30]
add r8, rdx
movzx r11d, byte [r8 + 0x34]
lea r11, [r11 + r12 + 1]
add r11, qword [r15 + r9*8]
cmp byte [r11], 0
mov r12, r11
jne 0x40b26c
test byte [r8 + 0x41], 1
jne 0x40b26c
test bl, bl
je 0x40b7c6
mov r8d, esi
mov r12, qword [r15 + r8*8]
test r12, r12
je 0x40b7cc
mov esi, dword [rsp + 0x30]
mov r8d, edi
add esi, 2
jmp 0x40ac4a
mov edi, r8d
mov ebx, 1
jmp 0x40b3e4
mov qword [r13 + rbx*8 + 0x20], 0
jmp 0x40ae15
mov r8, rax
mov rdx, r14
mov rcx, r12
call sub.msvcrt.dll_memcpy
jmp 0x40aed2
mov r8d, dword [rsp + 0x64]
mov r9, r13
mov rdx, r12
mov rcx, r14
call fcn.0040a720
cmp edi, 1
jbe 0x40ae2b
mov r10d, dword [rsp + 0x30]
lea ecx, [rdi - 1]
mov eax, 1
add rcx, 2
add r10d, 1
lea r9, [r15 + r10*8]
nop dword [rax + rax]
mov rdx, qword [r9 + rax*8 - 8]
mov r8d, eax
test rdx, rdx
je 0x40b4df
mov qword [r13 + rax*8 + 0x20], rdx
add rax, 1
cmp rcx, rax
jne 0x40b4c0
add r8d, 1
cmp esi, r8d
jne 0x490ae3
mov rax, qword [rsp + 0x28]
mov qword [r13 + 0x40], rax
jmp 0x40ae2b
lea rcx, [0x005c70a0]
mov rdx, rbp
call fcn.0046b800
mov rax, qword [0x005c70b8]
mov r12, qword [0x005c70b0]
mov rdx, qword [0x005c70c0]
add rax, rbp
cmp rax, r12
jne 0x40ae5b
or byte [0x005c70f0], 2
jmp 0x40ae5b
mov r12, qword [r15]
mov dword [rsp + 0x64], 1
mov eax, 1
xor edx, edx
mov dword [rsp + 0x30], 0
mov qword [r13], 0x5d4
xor edi, edi
mov qword [r13 + 0x10], r12
mov dword [r13 + 0x48], eax
mov dword [r13 + 0x4c], edx
mov qword [r13 + 8], 0
mov qword [rsp + 0x40], 0
mov esi, 1
mov r14d, 0x5d4
mov qword [rsp + 0x28], 1
mov dword [rsp + 0x38], 0
jmp 0x40adcf
cmp eax, 1
movzx edx, word [rbp + 0x46]
jne 0x490b13
movsxd rax, edx
mov r9d, dword [rsp + 0xd0]
mov rdx, r12
mov qword [rsp + 0x38], r10
lea rbx, [rax + rax*2]
lea r8, [rsp + 0x64]
shl rbx, 4
add rbx, qword [0x005b9200]
mov rcx, qword [rbx + 0x10]
call fcn.00409dc0
mov r10, qword [rsp + 0x38]
test al, al
jne 0x40b8a0
or dword [rsp + 0x28], 0x20
mov eax, dword [rsp + 0x64]
jmp 0x40ad87
lea eax, [rbx - 1]
lea r8, [rax + rax*4]
lea rdx, [rsi + 0x50]
shl r8, 4
lea rcx, [rsi + 0xa0]
call fcn.0048bfb8
lea rax, [rbp + rbp*4]
shl rax, 4
add rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov qword [rsi + 0x50], rdx
mov rdx, qword [rax + 8]
mov qword [rsi + 0x58], rdx
mov rdx, qword [rax + 0x10]
mov qword [rsi + 0x60], rdx
mov rdx, qword [rax + 0x18]
mov qword [rsi + 0x68], rdx
mov rdx, qword [rax + 0x20]
mov qword [rsi + 0x70], rdx
mov rdx, qword [rax + 0x28]
mov qword [rsi + 0x78], rdx
mov rdx, qword [rax + 0x30]
mov qword [rsi + 0x80], rdx
mov rdx, qword [rax + 0x38]
mov qword [rsi + 0x88], rdx
mov rdx, qword [rax + 0x40]
mov rax, qword [rax + 0x48]
mov qword [rsi + 0x90], rdx
mov qword [rsi + 0x98], rax
lea eax, [rbx + 1]
lea rdi, [rax + rax*4]
mov rbx, rax
shl rdi, 4
jmp 0x40b08b
mov rcx, r12
mov qword [rsp + 0x38], r10
call fcn.0040a070
mov ebx, dword [rsp + 0x28]
mov dword [rsp + 0x64], eax
mov r10, qword [rsp + 0x38]
mov edx, ebx
or edx, 8
cmp eax, 0xffffffff
cmovne edx, ebx
mov dword [rsp + 0x28], edx
mov edx, dword [rbp + 0x5c]
cmp edx, 0xffffffff
je 0x40ad7d
cmp eax, dword [rbp + 0x58]
jl 0x40b6e2
cmp eax, edx
jle 0x40ad7d
or dword [rsp + 0x28], 0x10
jmp 0x40ad7d
lea rax, [r14 + r14*2]
shl rax, 5
add rdx, rax
cmp qword [rdx + 0x20], 0
jne 0x490a3b
mov r12, qword [rdx + 0x28]
test r12, r12
jne 0x490a53
mov dword [rsp + 0x64], 1
mov r14d, 0x5d5
jmp 0x40ac70
mov rdx, qword [0x005b9230]
lea rbp, [rax + rax*2]
mov r14, rax
mov eax, 1
shl rbp, 5
add rbp, rdx
movzx ecx, byte [rbp + 0x40]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x58], 0
jmp 0x40abb6
mov r12, qword [r15]
mov edx, 0x40
jmp 0x40b55a
cmp edi, 1
movzx r9d, byte [rsp + 0x5f]
ja 0x40b337
lea rax, [r8 + r8*2]
shl rax, 5
test byte [rdx + rax + 0x40], 6
je 0x40b354
jmp 0x40b337
lea rax, [r8 + r8*2]
shl rax, 5
test byte [rdx + rax + 0x41], 1
je 0x40b919
lea rax, [0x00495cb5]
test r12, r12
cmove r12, rax
jmp 0x40b379
mov r8d, edi
mov edi, r8d
or dword [rsp + 0x28], 2
xor r12d, r12d
jmp 0x40b26c
or dword [rsp + 0x28], 2
add esi, edi
jmp 0x40ac41
lea rcx, [0x005c70a0]
mov rdx, r8
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], r8
call fcn.0046b800
mov rdx, qword [0x005c70b8]
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x005c70b0]
mov rax, qword [0x005c70c0]
mov r10, qword [rsp + 0x40]
add rdx, r8
cmp rdx, rcx
jne 0x40acfe
or byte [0x005c70f0], 2
jmp 0x40acfe
test r9, r9
je 0x40b868
cmp eax, 1
jne 0x490a9b
test r12, r12
jne 0x4909c3
and ecx, 0x10
jne 0x4909ab
mov r12, r9
jmp 0x40b305
and ecx, 0x10
je 0x40b879
test eax, eax
sete al
movzx eax, al
mov dword [rsp + 0x64], eax
test eax, eax
jne 0x40b305
lea rax, [r8 + r8*2]
shl rax, 5
cmp byte [rdx + rax + 0x40], 0
jns 0x40b305
jmp 0x490993
mov qword [rsp + 0x68], 0
mov r8d, dword [rsp + 0x64]
lea rdx, [rsp + 0x68]
mov r9d, dword [rsp + 0xd0]
mov rcx, qword [rbx + 0x10]
call fcn.0040a150
mov r10, qword [rsp + 0x38]
test al, al
jne 0x40b939
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x49097b
mov eax, dword [rsp + 0x64]
jmp 0x40ad87
mov rsi, qword [rsp + 0x48]
mov ecx, 0x50
mov edi, 1
mov rax, qword [rsp + 0xd8]
mov qword [rax], rsi
mov rax, qword [rsp + 0xe0]
mov dword [rax], 1
call fcn.00474400
mov rsi, rax
jmp 0x40af9f
test r12, r12
jne 0x40b379
jmp 0x4909db
xor ebx, ebx
xor edi, edi
jmp 0x40b08b
mov r12, qword [rsp + 0x68]
mov rax, r12
jmp 0x40b8d2
test rcx, rcx
mov byte [rcx], 0
jne 0x40ad6a
mov eax, dword [rsp + 0x64]
xor r12d, r12d
jmp 0x40ad87
cmp esi, 1
je 0x40b578
jmp 0x4909f3
jne 0x40b079
jmp 0x40afda