Function at 0x140104050
Capabilities:
Access peb ldr_data
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rbx, qword [r8]
mov r11d, dword [r8 + 0xc]
and qword [rbp - 0x40], 0
xor eax, eax
xor r10d, r10d
add r11, rbx
and qword [rbp - 0x20], r10
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
lea eax, [r10 + 1]
mov qword [rbp - 0x30], r11
mov rsi, r8
mov dword [rbp - 0x50], r10d
mov qword [rbp - 0x48], rax
test rcx, rcx
je 0x14010413e
mov ecx, dword [r11 + 0x20]
xor r9d, r9d
add rcx, rbx
mov qword [rbp - 0x38], rcx
mov ecx, dword [r11 + 0x24]
add rcx, rbx
mov qword [rbp - 0x28], rcx
mov ecx, dword [r11 + 0x18]
sub ecx, eax
js 0x140104358
mov rsi, qword [rbp - 0x38]
mov r11, qword [rbp + 0x20]
mov r10d, eax
lea edx, [rcx + r9]
sar edx, 1
movsxd rax, edx
mov edi, dword [rsi + rax*4]
mov rax, r11
add rdi, rbx
sub rdi, r11
mov r8b, byte [rax]
cmp r8b, byte [rax + rdi]
jne 0x140104103
add rax, r10
test r8b, r8b
jne 0x1401040ee
xor eax, eax
jmp 0x140104108
sbb eax, eax
or eax, r10d
test eax, eax
jns 0x140104111
lea ecx, [rdx - 1]
jmp 0x140104117
jle 0x14010411c
lea r9d, [rdx + 1]
cmp ecx, r9d
jge 0x1401040d9
mov r10d, dword [rbp - 0x50]
mov r11, qword [rbp - 0x30]
mov rsi, qword [rbp + 0x30]
cmp ecx, r9d
jl 0x140104358
mov rcx, qword [rbp - 0x28]
movsxd rax, edx
movzx edx, word [rcx + rax*2]
jmp 0x140104143
sub dx, word [r11 + 0x10]
mov eax, dword [r11 + 0x1c]
movzx ecx, dx
add rax, rbx
mov r8d, dword [rax + rcx*4]
add r8, rbx
mov qword [rbp - 0x40], r8
cmp r8, rbx
jb 0x140104358
mov eax, dword [rsi + 8]
add rax, rbx
cmp r8, rax
jae 0x140104358
cmp r8, r11
jbe 0x140104348
mov eax, dword [rsi + 0x10]
add rax, r11
cmp r8, rax
jae 0x140104348
mov edx, 0x2e
mov rcx, r8
call qword [sym.imp.msvcrt.dll_strchr]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x1401041ab
mov r10d, 0xc000007b
jmp 0x14010435e
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov rcx, qword [r10]
cmp rcx, r10
je 0x1401042a4
mov rbx, qword [rcx + 0x60]
lea r11, [0x140009708]
movzx r8d, word [rbx]
lea eax, [r8 - 0x41]
cmp ax, 0x19
ja 0x1401041e7
lea edx, [r8 + 0x20]
jmp 0x1401041eb
movzx edx, r8w
movzx r9d, word [r11]
lea eax, [r9 - 0x41]
cmp ax, 0x19
ja 0x1401041ff
lea eax, [r9 + 0x20]
jmp 0x140104203
movzx eax, r9w
movzx eax, ax
movzx edx, dx
sub edx, eax
jne 0x140104221
add rbx, 2
test r8w, r8w
je 0x140104236
add r11, 2
test r9w, r9w
jne 0x1401041d3
test edx, edx
js 0x140104231
mov eax, 1
cmovg edx, eax
test edx, edx
je 0x140104236
mov rcx, qword [rcx]
jmp 0x1401041bf
mov rdx, qword [rcx + 0x30]
mov r10d, esi
mov qword [rbp - 0x20], rdx
mov eax, dword [rcx + 0x40]
mov dword [rbp - 0x18], eax
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140104271
movsxd rax, dword [rdx + 0x3c]
cmp eax, 0x10000000
jae 0x140104271
mov rcx, rax
add rcx, qword [rbp - 0x20]
cmp rcx, qword [rbp - 0x20]
jb 0x140104271
cmp dword [rcx], 0x4550
je 0x140104279
mov r10d, 0xc000007b
jmp 0x1401042aa
movzx eax, word [rcx + 0x18]
mov edx, 0x10b
sub ax, dx
mov edx, 0xfeff
test dx, ax
je 0x140104297
mov r10d, 0xc000000d
jmp 0x1401042aa
mov rax, qword [rcx + 0x88]
mov qword [rbp - 0x14], rax
jmp 0x1401042aa
mov r10d, 0xc000007a
test r10d, r10d
js 0x14010435e
lea r11, [rdi + 1]
mov ecx, esi
cmp byte [r11], 0x23
jne 0x14010432a
lea rdx, [rdi + 2]
mov r11, rsi
mov r9d, esi
test rdx, rdx
jne 0x1401042d3
mov dword [rbp - 0x48], esi
jmp 0x140104325
mov ax, 0x20
jmp 0x1401042dd
add rdx, 2
cmp word [rdx], ax
je 0x1401042d9
cmp word [rdx], 0x2d
jne 0x1401042f2
mov r9d, 1
add rdx, 2
cmp word [rdx], ax
je 0x1401042ee
jmp 0x140104314
lea eax, [r8 - 0x30]
cmp ax, 9
ja 0x140104351
lea ecx, [rcx + rcx*4]
movzx eax, r8w
add rdx, 2
lea ecx, [rcx - 0x18]
lea ecx, [rax + rcx*2]
movzx r8d, word [rdx]
test r8w, r8w
jne 0x1401042f9
test r9d, r9d
je 0x140104325
neg ecx
cmp dword [rbp - 0x48], esi
je 0x14010435e
movzx edx, cx
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x20]
mov rcx, r11
call fcn.140104050
mov r10d, eax
test eax, eax
js 0x14010435e
mov r8, qword [rbp - 0x40]
mov rax, qword [rbp + 0x38]
mov qword [rax], r8
jmp 0x14010435e
mov dword [rbp - 0x48], esi
mov ecx, esi
jmp 0x140104325
mov r10d, 0xc000007a
mov eax, r10d
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret