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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140037db0], eax
jle 0x1400135a4
lea rcx, [0x140037db0]
call fcn.14002b628
cmp dword [0x140037db0], 0xffffffff
jne 0x1400135a4
call fcn.1400122f0
mov qword [0x140037d78], rax
lea rcx, [0x140037db0]
call fcn.14002b5bc
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140037e9c], eax
jle 0x1400135ef
lea rcx, [0x140037e9c]
call fcn.14002b628
cmp dword [0x140037e9c], 0xffffffff
jne 0x1400135ef
call fcn.1400125e0
mov qword [0x140037d60], rax
lea rcx, [0x140037e9c]
call fcn.14002b5bc
cmp qword [0x140037d78], 0
je 0x140013607
cmp qword [0x140037d60], 0
jne 0x1400136e2
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x22]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x20]
movzx r8d, byte [rsp + 0x21]
movzx edx, byte [rsp + 0x22]
lea rcx, [rsp + 0xe0]
call fcn.1400191c0
mov rcx, rax
call fcn.140014920
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x23]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x25]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x23]
movzx r8d, byte [rsp + 0x24]
movzx edx, byte [rsp + 0x25]
lea rcx, [rsp + 0x130]
call fcn.140019140
mov rcx, rax
call fcn.140014700
mov qword [rsp + 0x58], rax
mov r9d, 0x10
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x140013e48
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140037ddc], eax
jle 0x1400137fe
lea rcx, [0x140037ddc]
call fcn.14002b628
cmp dword [0x140037ddc], 0xffffffff
jne 0x1400137fe
lea rax, [rsp + 0x26]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x27]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x26]
movzx r8d, byte [rsp + 0x27]
movzx edx, byte [rsp + 0x28]
lea rcx, [rsp + 0x150]
call fcn.140019210
mov rcx, rax
call fcn.140014700
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x29]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x2a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x2b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x29]
movzx r8d, byte [rsp + 0x2a]
movzx edx, byte [rsp + 0x2b]
lea rcx, [rsp + 0xf0]
call fcn.140019030
mov rcx, rax
call fcn.140014920
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.140011cb0
mov qword [0x140037e78], rax
lea rcx, [0x140037ddc]
call fcn.14002b5bc
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140037db8], eax
jle 0x14001391a
lea rcx, [0x140037db8]
call fcn.14002b628
cmp dword [0x140037db8], 0xffffffff
jne 0x14001391a
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x2d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x2e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x2c]
movzx r8d, byte [rsp + 0x2d]
movzx edx, byte [rsp + 0x2e]
lea rcx, [rsp + 0x170]
call fcn.140019290
mov rcx, rax
call fcn.140014700
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x2f]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x2f]
movzx r8d, byte [rsp + 0x30]
movzx edx, byte [rsp + 0x31]
lea rcx, [rsp + 0x100]
call fcn.140019030
mov rcx, rax
call fcn.140014920
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.140011cb0
mov qword [0x140037e70], rax
lea rcx, [0x140037db8]
call fcn.14002b5bc
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140037de0], eax
jle 0x140013a42
lea rcx, [0x140037de0]
call fcn.14002b628
cmp dword [0x140037de0], 0xffffffff
jne 0x140013a42
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x32]
movzx r8d, byte [rsp + 0x33]
movzx edx, byte [rsp + 0x34]
lea rcx, [rsp + 0x190]
call fcn.140019310
mov rcx, rax
call fcn.140014700
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x35]
movzx r8d, byte [rsp + 0x36]
movzx edx, byte [rsp + 0x37]
lea rcx, [rsp + 0x110]
call fcn.140019030
mov rcx, rax
call fcn.140014920
mov qword [rsp + 0x88], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.140011cb0
mov qword [0x140037e58], rax
lea rcx, [0x140037de0]
call fcn.14002b5bc
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140037d28], eax
jle 0x140013b6a
lea rcx, [0x140037d28]
call fcn.14002b628
cmp dword [0x140037d28], 0xffffffff
jne 0x140013b6a
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x38]
movzx r8d, byte [rsp + 0x39]
movzx edx, byte [rsp + 0x3a]
lea rcx, [rsp + 0x1b0]
call fcn.140019390
mov rcx, rax
call fcn.140014700
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x3b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x3b]
movzx r8d, byte [rsp + 0x3c]
movzx edx, byte [rsp + 0x3d]
lea rcx, [rsp + 0x120]
call fcn.140019030
mov rcx, rax
call fcn.140014920
mov qword [rsp + 0x98], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140011cb0
mov qword [0x140037d70], rax
lea rcx, [0x140037d28]
call fcn.14002b5bc
cmp qword [0x140037e78], 0
je 0x140013b88
cmp qword [0x140037e70], 0
je 0x140013b88
cmp qword [0x140037e58], 0
jne 0x140013b8f
xor al, al
jmp 0x140013e48
lea rcx, [rsp + 0x41]
call fcn.140010580
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x2a8]
call fcn.1400157c0
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x2a8]
call fcn.140015830
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xc0], rax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x228]
call fcn.140019410
nop
mov eax, dword [rsp + 0x2b0]
mov dword [rsp + 0x268], eax
lea rcx, [rsp + 0x228]
call fcn.1400156e0
mov rdx, rax
lea rcx, [rsp + 0x258]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r9b, 1
mov r8, qword [0x140037d78]
mov rdx, qword [0x140037e78]
mov rcx, qword [rsp + 0x2a0]
call fcn.140019520
movzx eax, al
test eax, eax
jne 0x140013c94
mov byte [rsp + 0x3e], 0
lea rcx, [rsp + 0x228]
call fcn.140015700
movzx eax, byte [rsp + 0x3e]
jmp 0x140013e48
lea r9, [rsp + 0x248]
mov r8, qword [0x140037d60]
mov rdx, qword [0x140037e70]
mov rcx, qword [rsp + 0x2a0]
call fcn.140019610
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140013e16
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x2a0]
call fcn.140019700
mov r8, qword [rsp + 0x1f0]
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x2a0]
call fcn.140019760
mov r8, qword [rsp + 0x1f8]
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x2a0]
call fcn.140019760
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x1e8], rax
lea r8, [rsp + 0x1d0]
mov rdx, qword [rsp + 0x1f8]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400197c0
lea r8, [rsp + 0x1e0]
mov rdx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400197c0
mov r9, qword [rsp + 0x48]
mov r8, qword [0x140037d60]
mov rdx, qword [0x140037d70]
mov rcx, qword [rsp + 0x2a0]
call fcn.140019800
lea r9, [rsp + 0x248]
mov r8, qword [0x140037d60]
mov rdx, qword [0x140037e70]
mov rcx, qword [rsp + 0x2a0]
call fcn.140019610
mov qword [rsp + 0xc8], rax
mov r8, qword [0x140037d78]
mov rdx, qword [0x140037e58]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400198f0
cmp qword [rsp + 0xc8], 0
jne 0x140013df1
mov dword [rsp + 0x44], 1
jmp 0x140013df9
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x3f], al
lea rcx, [rsp + 0x228]
call fcn.140015700
movzx eax, byte [rsp + 0x3f]
jmp 0x140013e48
mov r8, qword [0x140037d78]
mov rdx, qword [0x140037e58]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400198f0
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x228]
call fcn.140015700
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14002b4f0
add rsp, 0x290
pop rdi
ret