Function at 0x140058708
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 [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, r9
mov qword [rsp + 0x90], rbx
mov r14, r8
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0x78], r8
mov qword [rsp + 0xa8], rbx
xor edi, edi
mov dword [rsp + 0x50], edi
mov word [rsp + 0xc0], di
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0xc2]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x60], edi
mov eax, edi
mov qword [rsp + 0x58], rax
mov esi, edi
mov dword [rsp + 0x70], edi
lea r15, str.___t_
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400587d3
test byte [rcx + 0x1c], 4
je 0x1400587d3
cmp byte [rcx + 0x19], 5
jb 0x1400587d3
lea edx, [rdi + 0x6e]
lea r8, [0x1400040c0]
mov rcx, qword [rcx + 0x10]
call fcn.14000e618
mov dword [rbx], edi
mov rbx, qword [r14 + 0x8b0]
mov rcx, rbx
mov rax, qword [fcn.14002c9e0]
call rax
mov eax, 0x80000002
mov qword [rsp + 0x20], rax
mov r9, qword [0x14009a3e8]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x50]
call rbx
test eax, eax
jne 0x140058860
lea esi, [rax + 1]
mov dword [rsp + 0x70], esi
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140058858
test byte [rax + 0x1c], 4
je 0x140058858
cmp byte [rax + 0x19], 2
jb 0x140058858
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [r14 + 0x40]
lea edx, [rsi + 0x6e]
mov dword [rsp + 0x20], eax
lea r8, [0x1400040c0]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.14000e8e4
mov r14, rdi
jmp 0x140058fa2
jmp 0x1400588b0
mov r9d, dword [rsp + 0x50]
test r9d, r9d
je 0x140058f6d
mov ebx, 0x100
cmp r9d, ebx
jbe 0x140058902
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400588fc
test byte [rcx + 0x1c], 4
je 0x1400588fc
cmp byte [rcx + 0x19], 5
jb 0x1400588fc
mov edx, 0x70
lea r8, [0x1400040c0]
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
mov rcx, qword [str.___t_]
mov dword [rsp + 0x50], ebx
jmp 0x140058909
mov rcx, qword [str.___t_]
mov r8d, dword [rsp + 0x60]
lea eax, [r8 - 1]
cmp eax, 0xfffe
ja 0x140058f39
mov rdx, qword [0x14009a3f0]
lea r9, [0x14009a3f0]
cmp rdx, r9
je 0x1400589c4
lea rbx, [rdx]
mov rdx, qword [rdx]
cmp dword [rbx + 0x18], r8d
jb 0x14005892b
mov ecx, dword [rsp + 0x50]
add ecx, r8d
cmp dword [rbx + 0x18], ecx
ja 0x14005892b
mov esi, 1
add r14, 0x40
mov rax, qword [rbx + 0x28]
add rax, 0x40
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov edx, esi
mov ecx, edx
mov r9d, 0xc0007d61
lea r8d, [rsi + 1]
call fcn.1400728a0
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140058f9d
test byte [rcx + 0x1c], 4
je 0x140058f9d
cmp byte [rcx + 0x19], 2
jb 0x140058f9d
mov rax, qword [rbx + 0x28]
add rax, 0x40
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, r14
mov rcx, qword [rcx + 0x10]
call fcn.1400554f0
jmp 0x140058f9d
mov ecx, dword [rsp + 0x50]
shl rcx, 3
call fcn.140072274
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140058a39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140058fa2
test byte [rax + 0x1c], 4
je 0x140058fa2
cmp byte [rax + 0x19], 2
jb 0x140058fa2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [r14 + 0x73]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x50]
lea r8, [0x1400040c0]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.14000e820
jmp 0x140058fa2
mov r8d, dword [rsp + 0x50]
shl r8, 3
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r12d, edi
cmp dword [rsp + 0x50], edi
jbe 0x14005901b
lea rcx, [rsp + 0xc0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140058a65
lea eax, [rax*2 + 0x12]
mov ebx, eax
mov ecx, eax
call fcn.140072274
mov r13, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140058ef7
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0xc0]
lea r8, [0x140003fe0]
mov edx, ebx
mov rcx, rax
call fcn.140031704
mov ebx, eax
test eax, eax
js 0x140058eac
mov edx, edi
mov r14, rdi
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x80]
cmp dword [rax + 0x28], edi
jbe 0x140058b37
mov r8, qword [rax + 0x20]
mov eax, edx
imul r11, rax, 0x58
cmp dword [r11 + r8 + 0x3c], 1
jne 0x140058b1d
lea r10, [rbx + 0x658]
mov rax, qword [r11 + r8 + 0x48]
sub r10, rax
movzx r9d, word [rax]
movzx ecx, word [rax + r10]
sub r9d, ecx
jne 0x140058b0b
add rax, 2
test ecx, ecx
jne 0x140058af5
test r9d, r9d
jne 0x140058b1d
mov ecx, dword [rsp + 0x60]
add ecx, r12d
cmp dword [r11 + r8], ecx
je 0x140058b2e
inc edx
mov rax, qword [rsp + 0x98]
cmp edx, dword [rax + 0x28]
jae 0x140058b37
jmp 0x140058ad8
mov eax, edx
imul r14, rax, 0x58
add r14, r8
test r14, r14
jne 0x140058ba9
mov edx, dword [rsp + 0x60]
add edx, r12d
mov dword [rsp + 0x78], edx
mov r9, qword [rsp + 0x68]
mov eax, dword [r9 + 0x1c]
or eax, 4
lea r8, [rbx + 0x658]
mov rcx, qword [0x14009a458]
add rcx, 0x70
mov dword [rsp + 0x48], 1
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, r13
lea rdx, [rsp + 0x78]
call fcn.140082f5c
mov esi, eax
test eax, eax
jne 0x140058d8b
mov r13d, dword [rsp + 0x78]
jmp 0x140058bad
mov r13d, dword [r14 + 0x40]
mov ecx, 0xc0
call fcn.140072274
mov rbx, rax
test rax, rax
je 0x140058e68
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], rbx
mov dword [rbx + 0x10], 0x454e494c
mov dword [rbx + 0x14], r12d
mov ecx, dword [rsp + 0x60]
add ecx, r12d
mov dword [rbx + 0x1c], ecx
mov dword [rbx + 0x18], r13d
mov dword [rbx + 0x20], edi
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x28], rax
mov r13, qword [rsp + 0x88]
mov qword [rbx + 0x38], r13
mov dword [rbx + 0x68], edi
mov dword [rbx + 0x48], 0x20100000
test r14, r14
je 0x140058c81
mov rcx, qword [r14 + 0x18]
call fcn.1400730d0
mov qword [rbx + 0x58], rax
mov rcx, qword [r14 + 0x20]
call fcn.1400730d0
mov qword [rbx + 0x60], rax
mov rcx, qword [r14 + 0x30]
call fcn.1400730d0
mov qword [rbx + 0x40], rax
cmp qword [r14 + 0x18], rdi
je 0x140058c60
cmp qword [rbx + 0x58], rdi
je 0x140058dcc
cmp qword [r14 + 0x20], rdi
je 0x140058c70
cmp qword [rbx + 0x60], rdi
je 0x140058dcc
cmp qword [r14 + 0x30], rdi
je 0x140058ccd
test rax, rax
je 0x140058dcc
jmp 0x140058ccd
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.1400730d0
mov qword [rbx + 0x58], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
call fcn.1400730d0
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x40], rdi
mov rdx, qword [rsp + 0x68]
cmp qword [rdx], rdi
je 0x140058cbc
cmp qword [rbx + 0x58], rdi
je 0x140058e25
cmp qword [rdx + 8], rdi
je 0x140058cd2
test rax, rax
je 0x140058e25
jmp 0x140058cd2
mov rdx, qword [rsp + 0x68]
test r14, r14
je 0x140058cdd
mov eax, dword [r14 + 0x14]
jmp 0x140058ce2
mov eax, 1
mov dword [rbx + 0x6c], eax
mov dword [rbx + 0x70], edi
mov dword [rbx + 0xa4], edi
mov qword [rbx + 0x50], 0
mov qword [rbx + 0xb0], rdi
mov rax, r14
neg rax
sbb ecx, ecx
and ecx, 3
inc ecx
mov dword [rbx + 0xb8], ecx
test r14, r14
je 0x140058d1b
mov eax, dword [r14 + 0x10]
jmp 0x140058d21
mov eax, dword [rdx + 0x1c]
or eax, 4
mov dword [rbx + 0x4c], eax
mov rax, qword [0x14009a3f8]
lea rcx, [0x14009a3f0]
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [0x14009a3f8], rbx
mov r13, qword [rsp + 0x90]
inc dword [r13]
test byte [rbx + 0x4c], 1
jne 0x140058d68
test byte [rbx + 0x4c], 2
jne 0x140058d68
mov eax, dword [0x14009a3e4]
cmp dword [rbx + 0x18], eax
mov eax, edi
jne 0x140058d6d
mov eax, 1
cmp eax, 1
jne 0x140058d78
inc dword [0x14009a3e0]
inc r12d
cmp r12d, dword [rsp + 0x50]
jae 0x140058e5e
jmp 0x140058a59
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140058f9d
test byte [rcx + 0x1c], 4
je 0x140058f9d
cmp byte [rcx + 0x19], 2
jb 0x140058f9d
mov edx, 0x76
mov r9d, eax
lea r8, [0x1400040c0]
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
jmp 0x140058f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140058f9d
test byte [rax + 0x1c], 4
je 0x140058f9d
cmp byte [rax + 0x19], 2
jb 0x140058f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x78
mov r9d, eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r12d
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.140055390
jmp 0x140058f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140058f9d
test byte [rax + 0x1c], 4
je 0x140058f9d
cmp byte [rax + 0x19], 2
jb 0x140058f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x79
jmp 0x140058e03
mov r14, qword [rsp + 0x58]
jmp 0x14005901b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140058f9d
test byte [rax + 0x1c], 4
je 0x140058f9d
cmp byte [rax + 0x19], 2
jb 0x140058f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x77
mov r13, qword [rsp + 0x88]
jmp 0x140058e03
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140058edc
test byte [rcx + 0x1c], 4
je 0x140058edc
cmp byte [rcx + 0x19], 2
jb 0x140058edc
mov edx, 0x75
mov r9d, eax
lea r8, [0x1400040c0]
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
mov ecx, ebx
and ecx, 0x1fff0000
movzx eax, bx
mov esi, ebx
cmp ecx, 0x70000
cmove esi, eax
jmp 0x140058f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140058f9d
test byte [rcx + 0x1c], 4
je 0x140058f9d
cmp byte [rcx + 0x19], 2
jb 0x140058f9d
mov edx, 0x74
mov r9d, eax
lea r8, [0x1400040c0]
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
jmp 0x140058f9d
mov esi, 1
cmp rcx, r15
je 0x140058f9d
test byte [rcx + 0x1c], 4
je 0x140058f9d
cmp byte [rcx + 0x19], 2
jb 0x140058f9d
lea r9, [r14 + 0x40]
lea edx, [rsi + 0x70]
mov dword [rsp + 0x20], r8d
lea r8, [0x1400040c0]
mov rcx, qword [rcx + 0x10]
call fcn.14000e8e4
jmp 0x140058f9d
mov esi, 1
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140058f9d
test byte [rcx + 0x1c], 4
je 0x140058f9d
cmp byte [rcx + 0x19], 2
jb 0x140058f9d
lea edx, [rsi + 0x79]
lea r8, [0x1400040c0]
mov rcx, qword [rcx + 0x10]
call fcn.14000e618
mov r14, qword [rsp + 0x58]
test r14, r14
je 0x140059011
mov ebx, edi
cmp dword [rsp + 0x50], edi
jbe 0x140059011
mov edx, ebx
mov rax, qword [r14 + rdx*8]
test rax, rax
je 0x140059009
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rax, qword [r14 + rdx*8]
mov qword [rax], rdi
mov rax, qword [r14 + rdx*8]
mov qword [rax + 8], rdi
mov rcx, qword [r14 + rdx*8]
test byte [rcx + 0x4c], 1
jne 0x140058ff4
test byte [rcx + 0x4c], 2
jne 0x140058ff4
mov eax, dword [0x14009a3e4]
cmp dword [rcx + 0x18], eax
mov eax, edi
jne 0x140058ff9
mov eax, 1
cmp eax, 1
jne 0x140059004
dec dword [0x14009a3e0]
call fcn.140055728
inc ebx
cmp ebx, dword [rsp + 0x50]
jb 0x140058faf
mov rax, qword [rsp + 0x90]
mov dword [rax], edi
mov rcx, r14
call fcn.140072328
test esi, esi
je 0x140059031
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140088640
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret