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

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x60
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
cmp qword [rdx + 0x38], 0
mov r13, rcx
mov r12, rdx
je 0x42d928
mov rax, qword [0x005ab240]
lea rcx, [rsp + 0x30]
mov rdx, r13
mov rax, qword [rax]
mov rax, qword [rax + 0xc8]
mov r8, qword [rax + 0x10]
call sub.msvcrt.dll_memcpy
lea r8, [rsp + 0x2c]
mov rdx, r12
mov rcx, rax
call fcn.0042d5d0
test eax, eax
jne 0x42d940
xor eax, eax
mov rdx, qword [rsp + 0x58]
xor rdx, qword [rbx]
jne 0x42d94e
add rsp, 0x60
pop rbx
pop r12
pop r13
ret
mov rcx, rdx
call fcn.0042b430
test eax, eax
je 0x42d8d7
jmp 0x42d90d
mov edx, dword [rsp + 0x2c]
mov rcx, r12
call fcn.0042d820
jmp 0x42d90f
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, r8
mov r8, qword [r8]
mov esi, r9d
xor r9d, r9d
mov r12, rcx
call fcn.0042be30
mov rcx, rax
cmp esi, 6
je 0x42d9c0
cmp esi, 7
jne 0x42da43
mov rdx, r12
call fcn.0042d8b0
mov rdx, qword [0x005ab240]
mov rdx, qword [rdx]
mov rdx, qword [rdx + 0xc8]
mov rdx, qword [rdx + 0x10]
add qword [rbx], rdx
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
movzx edx, byte [rax]
mov rax, rdx
and eax, 0x7f
test dl, dl
jns 0x42da3b
add rax, 1
mov r9d, 1
movabs r10, 0xfe00000000000000
jmp 0x42d9f3
add rax, 1
je 0x42d9ad
test rax, r10
jne 0x42da30
mov edx, r9d
shl rax, 7
add r9d, 1
movzx edx, byte [rcx + rdx]
mov r8, rdx
and r8d, 0x7f
add rax, r8
test dl, dl
js 0x42d9e8
mov rsi, qword [rsp + 0x60]
sub rsi, rax
mov rax, rsi
test rsi, rsi
jle 0x42da30
cmp qword [rsp + 0x60], rsi
jle 0x42da30
add qword [rbx], r9
jmp 0x42d9ad
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov r9d, 1
jmp 0x42da10
lea rcx, str.I_am_totally_screwed
call fcn.00494770
nop
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r13, qword [rsp + 0x2f0]
mov qword [rsp + 0x58], rcx
mov rdi, rdx
mov rbx, r8
mov r10d, r9d
mov rcx, qword [rax]
mov qword [rsp + 0x278], rcx
xor ecx, ecx
lea eax, [r9 - 6]
cmp eax, 1
ja 0x42dc54
lea rax, [rsp + 0x70]
lea r14, [rsp + 0x2f8]
xor r15d, r15d
mov esi, 0x40
mov qword [rsp + 0x50], rax
mov r12, rax
lea rax, [rsp + 0x6c]
mov rbx, r15
mov qword [rsp + 0x48], rax
mov rax, r14
mov r14, r13
mov r13, r8
mov r15, rax
jmp 0x42db06
lea esi, [rsi + rsi*2 + 0x30]
add ebp, 2
mov rcx, r12
sar esi, 1
cmp esi, dword [rsp + 0x3c]
cmovle esi, ebp
movsxd rdx, esi
shl rdx, 3
call fcn.00499790
mov r9d, dword [rsp + 0x2e8]
mov r12, rax
add rbx, 1
mov qword [r12 + rbx*8], r13
lea eax, [rbx + 1]
mov r8, r15
mov rdx, r14
mov qword [rsp + 0x20], r13
mov rcx, rdi
mov ebp, ebx
mov dword [rsp + 0x3c], eax
lea rax, [rbx*8]
mov qword [rsp + 0x40], rax
call 0x42d960
mov r13, rax
test rax, rax
je 0x42dbd4
mov r9, qword [rsp + 0x48]
mov r8, r15
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x2f8], rax
call fcn.0042d350
mov r9d, eax
test eax, eax
jle 0x42dbc0
lea eax, [rax - 6]
cmp eax, 1
ja 0x42dc40
cmp esi, dword [rsp + 0x3c]
jg 0x42db02
cmp r12, qword [rsp + 0x50]
mov dword [rsp + 0x2e8], r9d
jne 0x42dad8
lea esi, [rbp + rbp*2 + 0x33]
sar esi, 1
movsxd rcx, esi
shl rcx, 3
call fcn.004996e0
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
mov r12, rax
add r8, 8
call sub.msvcrt.dll_memcpy
mov r9d, dword [rsp + 0x2e8]
jmp 0x42db02
mov rcx, qword [rsp + 0x58]
mov r8, r13
mov rdx, rdi
call fcn.0042d710
test eax, eax
jg 0x42dc01
movsxd rbx, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x58]
nop
mov r8, qword [r12 + rbx*8 - 8]
mov rdx, rdi
mov rcx, rsi
call fcn.0042d710
test eax, eax
jg 0x42dc01
sub rbx, 1
test ebx, ebx
jne 0x42dbe0
mov eax, 0xffffffff
cmp r12, qword [rsp + 0x50]
je 0x42dc18
mov rcx, r12
mov dword [rsp + 0x3c], eax
call fcn.004c9260
mov eax, dword [rsp + 0x3c]
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rcx, qword [rsp + 0x278]
xor rcx, qword [rdi]
jne 0x42dc9d
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [r9 - 1]
mov rbx, r13
mov r10d, r9d
cmp eax, 3
ja 0x42dc7a
mov eax, r9d
jmp 0x42dc01
mov eax, 0xffffffff
cmp r9d, 0xffffffff
je 0x42dc18
lea eax, [r9 - 1]
cmp eax, 3
ja 0x42dc6d
mov eax, r9d
jmp 0x42dc18
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov r12, rax
lea r9, [rdi + 0xa0]
mov r8, rbx
mov edx, r10d
lea rcx, str.unknown_object_type__i_at_offset__I64u_in__s
call fcn.00494950
mov eax, 0xffffffff
jmp 0x42dc01
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop