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

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov rdi, qword [rcx]
mov eax, dword [rdi + 0x24]
mov qword [rsp + 0x28], r13
mov r13, qword [rcx + 0x50]
test eax, eax
mov rsi, rcx
jne 0x4126b832
cmp byte [rdi + 0x14], al
je 0x4126b4b6
mov eax, 3
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
add rsp, 0x38
ret
cmp byte [rcx + 0x3c], 0
mov qword [rsp + 0x40], rbx
je 0x4126b519
mov ebx, dword [rcx + 8]
mov rcx, qword [rdi + 0x88]
cmp qword [rcx], 0
jne 0x4126b4dd
mov edx, 0x20a
mov eax, edx
jmp 0x4126b82d
movsxd r8, dword [rdi + 0x44]
lea r9d, [rbx - 1]
mov rdx, r13
imul r9, r8
call fcn.4124f9b0
cmp ebx, 1
mov edx, eax
jne 0x4126b512
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx + 0x18]
mov qword [rdi + 0x130], rax
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x138], rax
test edx, edx
jne 0x4126b4d6
mov byte [rsi + 0x3c], dl
xor ebx, ebx
mov qword [rsp + 0x48], rbp
cmp byte [rsi + 0x39], bl
mov ebp, ebx
jne 0x4126b554
mov rcx, qword [rsi]
mov byte [rsi + 0x39], 1
mov rax, qword [rcx + 0xd0]
mov qword [rsi + 0x40], rax
mov rax, qword [rcx + 0xd0]
test rax, rax
je 0x4126b549
mov qword [rax + 0x48], rsi
mov qword [rsi + 0x48], rbx
mov qword [rcx + 0xd0], rsi
cmp byte [rsi + 0x38], bl
mov qword [rsp + 0x30], r12
je 0x4126b593
mov rcx, qword [rsi]
cmp byte [rcx + 0x18], bl
je 0x4126b571
movsxd rax, dword [rcx + 0x40]
movzx eax, byte [rax + rsi + 0x78]
jmp 0x4126b57d
mov edx, dword [rsi + 8]
mov rcx, qword [rcx + 0x60]
call fcn.4126da70
test eax, eax
jne 0x4126b586
cmp byte [rdi + 0xd], bl
jne 0x4126b593
mov byte [rdi + 0x16], 1
mov byte [rdi + 0x1d], 1
jmp 0x4126b7fd
xor edx, edx
mov rcx, rsi
call fcn.4126b370
test eax, eax
mov ebp, eax
jne 0x4126b823
cmp byte [rdi + 8], bl
jne 0x4126b5c9
cmp byte [rdi + 0xa], bl
je 0x4126b5c9
cmp byte [rdi + 0x1c], 2
je 0x4126b5c9
mov rcx, rdi
call fcn.4126b160
test eax, eax
mov ebp, eax
jne 0x4126b823
mov byte [rdi + 0x16], 1
mov byte [rdi + 0x1d], 1
cmp byte [rsi + 0x38], bl
jne 0x4126b70a
cmp byte [rdi + 8], bl
jne 0x4126b5e8
cmp byte [rdi + 0x18], bl
je 0x4126b70a
mov r12d, dword [rsi + 8]
cmp r12d, dword [rdi + 0x2c]
jg 0x4126b6ea
cmp byte [rdi + 0x18], bl
je 0x4126b630
mov ecx, dword [rdi + 0x44]
movsxd rbx, dword [rdi + 0x40]
call fcn.41250040
test rax, rax
mov qword [rbx + rsi + 0x58], rax
jne 0x4126b61b
mov eax, 7
jmp 0x4126b823
movsxd r8, dword [rdi + 0x44]
mov rdx, qword [rsi + 0x50]
mov rcx, rax
call fcn.41217500
jmp 0x4126b6fc
mov rdx, r13
mov rcx, rdi
call fcn.41268f10
mov rdx, qword [rdi + 0xd8]
mov rcx, qword [rdi + 0x90]
mov r8d, r12d
mov ebx, eax
call fcn.41268750
test eax, eax
mov ebp, eax
jne 0x4126b821
mov r9, qword [rdi + 0xd8]
mov r8d, dword [rdi + 0x44]
mov rcx, qword [rdi + 0x90]
add r9, 4
mov rdx, r13
call fcn.4124f9c0
mov ebp, eax
mov eax, dword [rdi + 0x44]
add eax, 4
cdqe
add qword [rdi + 0xd8], rax
test ebp, ebp
jne 0x4126b821
mov rdx, qword [rdi + 0xd8]
mov rcx, qword [rdi + 0x90]
mov r8d, ebx
call fcn.41268750
add qword [rdi + 0xd8], 4
test eax, eax
mov ebp, eax
jne 0x4126b821
add dword [rdi + 0x34], 1
mov rcx, qword [rdi + 0x58]
mov edx, dword [rsi + 8]
call fcn.4126db50
cmp byte [rdi + 0xf], bpl
sete al
mov byte [rsi + 0x3a], al
cmp byte [rdi + 0xd], bpl
je 0x4126b6fc
mov edx, dword [rsi + 8]
mov rcx, qword [rdi + 0x60]
call fcn.4126db50
jmp 0x4126b6fc
cmp byte [rdi + 9], bl
jne 0x4126b6f9
cmp byte [rdi + 0xf], bl
jne 0x4126b6f9
mov ebx, 1
mov byte [rsi + 0x3a], bl
cmp byte [rsi + 0x3a], 0
je 0x4126b706
mov byte [rdi + 0x15], 1
mov byte [rsi + 0x38], 1
cmp byte [rdi + 0xd], 0
je 0x4126b7fd
mov rcx, qword [rsi]
cmp byte [rcx + 0x18], 0
je 0x4126b728
movsxd rax, dword [rcx + 0x40]
movzx eax, byte [rax + rsi + 0x78]
jmp 0x4126b734
mov edx, dword [rsi + 8]
mov rcx, qword [rcx + 0x60]
call fcn.4126da70
test eax, eax
jne 0x4126b7fd
mov r8d, dword [rsi + 8]
cmp r8d, dword [rdi + 0x30]
jg 0x4126b7fd
cmp byte [rdi + 0x18], al
je 0x4126b7ae
mov ecx, dword [rdi + 0x44]
movsxd rbx, dword [rdi + 0x40]
call fcn.41250040
test rax, rax
mov qword [rbx + rsi + 0x60], rax
je 0x4126b775
movsxd r8, dword [rdi + 0x44]
mov rdx, qword [rsi + 0x50]
mov rcx, rax
call fcn.41217500
mov rdx, qword [rsi]
movsxd rcx, dword [rdx + 0x40]
cmp byte [rcx + rsi + 0x78], 0
jne 0x4126b7fd
mov rax, qword [rdx + 0xc8]
test rax, rax
je 0x4126b794
mov qword [rax + rcx + 0x70], rsi
mov rax, qword [rdx + 0xc8]
mov qword [rcx + rsi + 0x68], rax
mov qword [rdx + 0xc8], rsi
mov byte [rcx + rsi + 0x78], 1
jmp 0x4126b7fd
mov eax, dword [rdi + 0x44]
mov rcx, qword [rdi + 0x98]
add eax, 4
imul eax, dword [rdi + 0x3c]
movsxd rbx, eax
mov rdx, rbx
call fcn.41268750
test eax, eax
mov ebp, eax
jne 0x4126b821
mov r8d, dword [rdi + 0x44]
mov rcx, qword [rdi + 0x98]
lea r9, [rbx + 4]
mov rdx, r13
call fcn.4124f9c0
test eax, eax
mov ebp, eax
jne 0x4126b821
add dword [rdi + 0x3c], 1
mov rcx, qword [rdi + 0x60]
mov edx, dword [rsi + 8]
call fcn.4126db50
mov ecx, dword [rsi + 8]
cmp dword [rdi + 0x28], ecx
jge 0x4126b821
cmp byte [rdi + 0x18], 0
mov dword [rdi + 0x28], ecx
jne 0x4126b821
mov eax, 0x40000000
cdq
idiv dword [rdi + 0x44]
cmp ecx, eax
jne 0x4126b821
lea eax, [rcx + 1]
mov dword [rdi + 0x28], eax
mov eax, ebp
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
add rsp, 0x38
ret