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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x84], 7
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x20], 8
movabs rax, 0xdeadbeefcafebabe
mov qword [rsp + 0xa0], rax
call fcn.1400078cb
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0xdd40
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140005b45
jmp 0x140006069
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0xcd9b2a0f
je 0x140005b62
jmp 0x140005b73
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.140006fb0
jmp 0x140005b82
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.140006c60
cmp dword [rsp + 0x24], 0x1e
jbe 0x140005bc0
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.too_many_frames_
mov rcx, rax
call fcn.1400026d0
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x140017734]
mov rcx, rax
call fcn.1400026d0
jmp 0x140006069
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.140006700
mov eax, dword [rsp + 0x20]
imul eax, dword [rsp + 0x84]
mov eax, eax
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x98]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140005c15
jmp 0x140006069
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0
jmp 0x140005c3d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x40], eax
jae 0x140005c8c
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x740], 0
je 0x140005c8a
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x51c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x140005c33
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
and rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
cmp rax, rcx
jne 0x140005cd8
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x48], eax
jmp 0x140005ce0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140005d1f
jmp 0x140006069
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x78]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140005d4a
jmp 0x140006069
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x38], 0
jmp 0x140005d7e
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x38], eax
jae 0x140005de8
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x740], 0
je 0x140005de6
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0x28]
cmp qword [rcx + rax + 0x528], 0
je 0x140005de6
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x28]
mov rax, qword [rdx + rax + 0x528]
mov qword [rcx + 0x48], rax
jmp 0x140005de8
jmp 0x140005d74
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0xc0]
add rax, qword [rcx + 0x20]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x50], rcx
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x30], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0x40], rcx
mov r8, qword [rsp + 0xc0]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.140006320
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0xc0]
call fcn.1400061a0
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x38]
mov rcx, qword [rsp + 0xc0]
call fcn.1400061a0
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x40]
mov rcx, qword [rsp + 0xc0]
call fcn.1400061a0
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x40], rax
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x3c], 0
jmp 0x140005fd2
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x3c], eax
jae 0x140006061
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x740], 0
je 0x14000605c
cmp dword [rsp + 0x58], 0
je 0x14000602c
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movsx eax, byte [rax + rcx + 0x414]
jmp 0x140006054
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x760
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movsx eax, byte [rax + rcx + 0x414]
mov dword [rsp + 0x58], 0
jmp 0x140005fc8
mov dword [rsp + 0x44], 1
cmp dword [rsp + 0x44], 0
jne 0x14000608e
cmp qword [rsp + 0x60], 0
je 0x14000608e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [rsp + 0x44], 0
jne 0x1400060b3
cmp qword [rsp + 0x68], 0
je 0x1400060b3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [rsp + 0x44], 0
jne 0x1400060d8
cmp qword [rsp + 0x50], 0
je 0x1400060d8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x28], 0
je 0x1400060f6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x44]
add rsp, 0xb8
ret