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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r12, r9
mov qword [rsp + 0x90], r9
mov r13, r8
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0xb0], r9
xor ebx, ebx
mov dword [rsp + 0x50], ebx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0xc0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x58], rbx
mov r14d, ebx
mov dword [rsp + 0x80], ebx
lea r15, str.___t_
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140049931
test byte [rcx + 0x1c], 4
je 0x140049931
cmp byte [rcx + 0x19], 5
jb 0x140049931
lea edx, [rbx + 0x6e]
lea r8, [0x140082bf0]
mov rcx, qword [rcx + 0x10]
call fcn.140001010
mov dword [r12], ebx
mov eax, 0x80000002
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400983e8]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x50]
mov rax, qword [r13 + 0x8b0]
mov r10, qword [0x140080850]
call r10
test eax, eax
jne 0x1400499c2
lea esi, [rax + 1]
mov r14d, esi
mov dword [rsp + 0x80], esi
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400499ba
test byte [rax + 0x1c], 4
je 0x1400499ba
cmp byte [rax + 0x19], 2
jb 0x1400499ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [r13 + 0x40]
lea edx, [rsi + 0x6e]
mov dword [rsp + 0x20], eax
lea r8, [0x140082bf0]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.140001250
mov r13, rbx
jmp 0x14004a100
jmp 0x140049a14
mov r9d, dword [rsp + 0x50]
test r9d, r9d
je 0x14004a0c8
cmp r9d, 0x100
jbe 0x140049a69
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140049a5f
test byte [rcx + 0x1c], 4
je 0x140049a5f
cmp byte [rcx + 0x19], 5
jb 0x140049a5f
mov edx, 0x70
lea r8, [0x140082bf0]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rcx, qword [str.___t_]
mov dword [rsp + 0x50], 0x100
jmp 0x140049a70
mov rcx, qword [str.___t_]
mov r8d, dword [rsp + 0x60]
lea eax, [r8 - 1]
cmp eax, 0xfffe
ja 0x14004a091
mov rdx, qword [0x1400983d8]
lea r9, [0x1400983d8]
cmp rdx, r9
je 0x140049b2e
lea rdi, [rdx]
mov rdx, qword [rdx]
cmp dword [rdi + 0x18], r8d
jb 0x140049a92
mov ecx, dword [rsp + 0x50]
add ecx, r8d
cmp dword [rdi + 0x18], ecx
ja 0x140049a92
mov esi, 1
mov r14d, esi
lea r12, [r13 + 0x40]
mov rax, qword [rdi + 0x28]
add rax, 0x40
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0xc0007d61
lea r8d, [rsi + 1]
mov edx, esi
mov ecx, esi
call fcn.140062ba4
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004a0fb
test byte [rcx + 0x1c], 4
je 0x14004a0fb
cmp byte [rcx + 0x19], 2
jb 0x14004a0fb
mov rax, qword [rdi + 0x28]
add rax, 0x40
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, r12
mov rcx, qword [rcx + 0x10]
call fcn.14004673c
jmp 0x14004a0fb
mov ecx, dword [rsp + 0x50]
shl rcx, 3
call fcn.1400625b8
mov r13, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140049b9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140049b93
test byte [rax + 0x1c], 4
je 0x140049b93
cmp byte [rax + 0x19], 2
jb 0x140049b93
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [r13 + 0x73]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x50]
lea r8, [0x140082bf0]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.1400011ac
mov esi, 1
jmp 0x14004a100
mov r8d, dword [rsp + 0x50]
shl r8, 3
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r12d, ebx
cmp dword [rsp + 0x50], ebx
jbe 0x14004a173
mov esi, 1
lea rcx, [rsp + 0xc0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140049bce
lea eax, [rax*2 + 0x12]
mov edi, eax
mov ecx, eax
call fcn.1400625b8
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14004a04a
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0xc0]
lea r8, str._s_d
mov edx, edi
mov rcx, rax
call fcn.1400234c4
mov edi, eax
test eax, eax
js 0x140049ffd
mov r8d, ebx
mov r13, rbx
mov rax, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x88]
cmp dword [rax + 0x28], ebx
jbe 0x140049c98
mov r9, qword [rax + 0x20]
mov eax, r8d
imul rdx, rax, 0x58
cmp dword [rdx + r9 + 0x3c], esi
jne 0x140049c81
lea r11, [rdi + 0x658]
mov rax, qword [rdx + r9 + 0x48]
sub r11, rax
movzx r10d, word [rax]
movzx ecx, word [rax + r11]
sub r10d, ecx
jne 0x140049c6f
add rax, 2
test ecx, ecx
jne 0x140049c59
test r10d, r10d
jne 0x140049c81
mov ecx, dword [rsp + 0x60]
add ecx, r12d
cmp dword [rdx + r9], ecx
je 0x140049c94
add r8d, esi
mov rax, qword [rsp + 0x98]
cmp r8d, dword [rax + 0x28]
jae 0x140049c98
jmp 0x140049c3c
lea r13, [rdx + r9]
test r13, r13
jne 0x140049d08
mov edx, dword [rsp + 0x60]
add edx, r12d
mov dword [rsp + 0x70], edx
mov r9, qword [rsp + 0x78]
mov eax, dword [r9 + 0x1c]
or eax, 4
lea r8, [rdi + 0x658]
mov rcx, qword [0x140098448]
add rcx, 0x70
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], edx
mov rax, qword [r9 + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [r9]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x70]
call fcn.1400723fc
mov r14d, eax
test eax, eax
jne 0x140049edc
mov eax, dword [rsp + 0x70]
jmp 0x140049d0c
mov eax, dword [r13 + 0x40]
mov dword [rsp + 0x70], eax
mov ecx, 0xc0
call fcn.1400625b8
mov rdi, rax
test rax, rax
je 0x140049fc0
xor edx, edx
mov r8d, 0xc0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + rax*8], rdi
mov dword [rdi + 0x10], 0x454e494c
mov dword [rdi + 0x14], r12d
mov ecx, dword [rsp + 0x60]
add ecx, r12d
mov dword [rdi + 0x1c], ecx
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x18], eax
mov dword [rdi + 0x20], ebx
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x68], ebx
mov dword [rdi + 0x48], 0x20100000
test r13, r13
je 0x140049de4
mov rcx, qword [r13 + 0x18]
call fcn.1400633d4
mov qword [rdi + 0x58], rax
mov rcx, qword [r13 + 0x20]
call fcn.1400633d4
mov qword [rdi + 0x60], rax
mov rcx, qword [r13 + 0x30]
call fcn.1400633d4
mov qword [rdi + 0x40], rax
cmp qword [r13 + 0x18], rbx
je 0x140049dc3
cmp qword [rdi + 0x58], rbx
je 0x140049f1d
cmp qword [r13 + 0x20], rbx
je 0x140049dd3
cmp qword [rdi + 0x60], rbx
je 0x140049f1d
cmp qword [r13 + 0x30], rbx
je 0x140049e30
test rax, rax
je 0x140049f1d
jmp 0x140049e30
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
call fcn.1400633d4
mov qword [rdi + 0x58], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
call fcn.1400633d4
mov qword [rdi + 0x60], rax
mov qword [rdi + 0x40], rbx
mov rdx, qword [rsp + 0x78]
cmp qword [rdx], rbx
je 0x140049e1f
cmp qword [rdi + 0x58], rbx
je 0x140049f7c
cmp qword [rdx + 8], rbx
je 0x140049e35
test rax, rax
je 0x140049f7c
jmp 0x140049e35
mov rdx, qword [rsp + 0x78]
test r13, r13
je 0x140049e40
mov eax, dword [r13 + 0x14]
jmp 0x140049e42
mov eax, esi
mov dword [rdi + 0x6c], eax
mov dword [rdi + 0x70], ebx
mov dword [rdi + 0xa4], ebx
and qword [rdi + 0x50], 0
mov qword [rdi + 0xb0], rbx
mov rax, r13
neg rax
sbb ecx, ecx
and ecx, 3
add ecx, esi
mov dword [rdi + 0xb8], ecx
test r13, r13
je 0x140049e78
mov eax, dword [r13 + 0x10]
jmp 0x140049e7e
mov eax, dword [rdx + 0x1c]
or eax, 4
mov dword [rdi + 0x4c], eax
mov rax, qword [0x1400983e0]
lea rcx, [0x1400983d8]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [0x1400983e0], rdi
mov rax, qword [rsp + 0x90]
add dword [rax], esi
test byte [rdi + 0x4c], 3
jne 0x140049ebd
mov eax, dword [0x1400983d4]
cmp dword [rdi + 0x18], eax
mov eax, ebx
jne 0x140049ebf
mov eax, esi
cmp eax, esi
jne 0x140049ec9
add dword [0x1400983d0], esi
add r12d, esi
cmp r12d, dword [rsp + 0x50]
jae 0x140049fb6
jmp 0x140049bc2
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004a0fb
test byte [rcx + 0x1c], 4
je 0x14004a0fb
cmp byte [rcx + 0x19], 2
jb 0x14004a0fb
mov edx, 0x76
mov r9d, eax
lea r8, [0x140082bf0]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x14004a0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004a0fb
test byte [rax + 0x1c], 4
je 0x14004a0fb
cmp byte [rax + 0x19], 2
jb 0x14004a0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x78
mov r9d, eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.140046618
jmp 0x14004a0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004a0fb
test byte [rax + 0x1c], 4
je 0x14004a0fb
cmp byte [rax + 0x19], 2
jb 0x14004a0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x79
jmp 0x140049f55
mov r13, qword [rsp + 0x58]
jmp 0x14004a173
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004a0fb
test byte [rax + 0x1c], 4
je 0x14004a0fb
cmp byte [rax + 0x19], 2
jb 0x14004a0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x77
jmp 0x140049f55
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004a02d
test byte [rcx + 0x1c], 4
je 0x14004a02d
cmp byte [rcx + 0x19], 2
jb 0x14004a02d
mov edx, 0x75
mov r9d, edi
lea r8, [0x140082bf0]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov ecx, edi
and ecx, 0x1fff0000
movzx eax, di
mov r14d, edi
cmp ecx, 0x70000
cmove r14d, eax
jmp 0x14004a0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004a0fb
test byte [rcx + 0x1c], 4
je 0x14004a0fb
cmp byte [rcx + 0x19], 2
jb 0x14004a0fb
mov edx, 0x74
mov r9d, eax
lea r8, [0x140082bf0]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x14004a0fb
mov esi, 1
mov r14d, esi
cmp rcx, r15
je 0x14004a0fb
test byte [rcx + 0x1c], 4
je 0x14004a0fb
cmp byte [rcx + 0x19], 2
jb 0x14004a0fb
lea r9, [r13 + 0x40]
lea edx, [rsi + 0x70]
mov dword [rsp + 0x20], r8d
lea r8, [0x140082bf0]
mov rcx, qword [rcx + 0x10]
call fcn.140001250
jmp 0x14004a0fb
mov esi, 1
mov r14d, esi
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004a0fb
test byte [rcx + 0x1c], 4
je 0x14004a0fb
cmp byte [rcx + 0x19], 2
jb 0x14004a0fb
lea edx, [rsi + 0x79]
lea r8, [0x140082bf0]
mov rcx, qword [rcx + 0x10]
call fcn.140001010
mov r13, qword [rsp + 0x58]
test r13, r13
je 0x14004a169
mov edi, ebx
cmp dword [rsp + 0x50], ebx
jbe 0x14004a169
mov edx, edi
mov rax, qword [r13 + rdx*8]
test rax, rax
je 0x14004a161
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rax, qword [r13 + rdx*8]
mov qword [rax], rbx
mov rax, qword [r13 + rdx*8]
mov qword [rax + 8], rbx
mov rcx, qword [r13 + rdx*8]
test byte [rcx + 0x4c], 3
jne 0x14004a150
mov eax, dword [0x1400983d4]
cmp dword [rcx + 0x18], eax
mov eax, ebx
jne 0x14004a152
mov eax, esi
cmp eax, esi
jne 0x14004a15c
dec dword [0x1400983d0]
call fcn.140046924
add edi, esi
cmp edi, dword [rsp + 0x50]
jb 0x14004a10d
mov rax, qword [rsp + 0x90]
mov dword [rax], ebx
mov rcx, r13
call fcn.140062654
test r14d, r14d
je 0x14004a18c
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14d, r14d
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140077900
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret