Function at 0x140029290
Capabilities:
Map section object
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x538
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov r8, qword [rcx]
lea rcx, [0x140064068]
mov rax, qword [0x140064068]
mov rax, qword [rax + 0x58]
lea rbx, [rsp + 0x110]
mov rdx, rbx
call qword [0x14006a010]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140029b1a
movzx eax, word [rsp + 0x110]
test ax, ax
je 0x140029b1a
movzx edx, ax
mov eax, edx
and eax, 0xfffffffe
add rax, rcx
add rax, 0xfffffffffffffffe
mov r8, rax
cmp dx, 2
jb 0x140029329
mov r8, rax
cmp word [r8], 0x5c
je 0x140029329
add r8, 0xfffffffffffffffe
cmp r8, rcx
jae 0x140029319
add r8, 2
lea rdx, [rsp + 0x78]
mov qword [rdx + 8], r8
sub eax, r8d
add eax, 2
mov word [rdx], ax
mov word [rdx + 2], ax
movups xmm0, xmmword [0x140055820]
lea rcx, [rsp + 0x60]
movaps xmmword [rcx], xmm0
mov r13b, 1
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
xor r14d, r14d
test eax, eax
je 0x14002939c
lea rcx, [0x140064de0]
lea rdx, [0x14002af00]
xor ebx, ebx
xor r8d, r8d
xor r9d, r9d
call fcn.1400541d0
mov r15, qword [0x140064dd8]
test r15, r15
je 0x1400295f5
cmp dword [r15], 3
jge 0x1400293a4
xor ebx, ebx
jmp 0x1400295f5
xor r15d, r15d
jmp 0x14002961e
mov eax, dword [0x140064df0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x1400293fe
cmp byte [0x140064df4], 0
je 0x1400293fe
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x1400293e2
call fcn.14002f818
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x10]
jmp 0x140029403
call fcn.14002c120
lea rbx, [r15 + 8]
test rax, rax
jne 0x1400295f5
mov rax, qword [r15 + 0x10]
xor ecx, ecx
call qword [0x14006a010]
mov r14, rax
and r14, 0xfffffffffffffffc
je 0x1400295f2
movzx eax, word [r14]
cmp eax, 0x5a4d
jne 0x1400295f2
movsxd rax, dword [r14 + 0x3c]
cmp dword [r14 + rax], 0x4550
jne 0x1400295f2
movzx ecx, word [r14 + rax + 0x18]
cmp ecx, 0x20b
jne 0x1400295f2
mov r8d, dword [r14 + rax + 0x50]
cmp r8d, 0x148
jb 0x1400295f2
mov ecx, dword [r14 + rax + 0x84]
cmp ecx, 0x10
mov edx, 0x10
cmovb edx, ecx
cmp edx, 2
jb 0x1400295f2
mov r12d, dword [r14 + rax + 0x90]
cmp r12d, r8d
jb 0x1400295f2
cmp dword [r14 + r12], 0
je 0x1400295f2
dec r8d
add r12, r14
xor ebp, ebp
mov dword [rsp + 0x50], r8d
test bpl, bpl
je 0x1400294cd
cmp dword [r12 + 0x14], 0
lea r12, [r12 + 0x14]
mov bpl, 1
jne 0x1400294b3
jmp 0x1400296f0
mov edx, dword [r12 + 0xc]
cmp r8d, edx
jae 0x140029528
add rdx, r14
lea rbp, [rsp + 0x98]
mov rcx, rbp
call sub.ntdll.dll_RtlInitAnsiString
lea rcx, [rsp + 0x88]
mov rdx, rbp
mov r8b, 1
call sub.ntdll.dll_RtlAnsiStringToUnicodeString
test eax, eax
js 0x140029540
movzx ecx, word [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov eax, ecx
and eax, 0xfffffffe
add rax, rdx
add rax, 0xfffffffffffffffe
cmp cx, 2
jae 0x140029567
mov rcx, rax
jmp 0x140029579
xor ebp, ebp
cmp dword [r12 + 0x14], 0
lea r12, [r12 + 0x14]
jne 0x1400294b3
jmp 0x1400295f2
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov rax, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffe
jmp 0x140029579
mov rcx, rax
cmp word [rcx], 0x5c
je 0x140029579
add rcx, 0xfffffffffffffffe
cmp rcx, rdx
jae 0x14002956a
add rcx, 2
mov qword [rsp + 0xa0], rcx
sub eax, ecx
add eax, 2
mov word [rsp + 0x98], ax
mov word [rsp + 0x9a], ax
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x98]
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
mov dword [rsp + 0x5c], eax
test eax, eax
sete bpl
cmp qword [rsp + 0x90], 0
je 0x1400295d1
lea rcx, [rsp + 0x88]
call sub.ntdll.dll_RtlFreeUnicodeString
cmp dword [r12 + 0x14], 0
lea r12, [r12 + 0x14]
mov r8d, dword [rsp + 0x50]
jne 0x1400294b3
cmp dword [rsp + 0x5c], 0
je 0x1400296f0
xor r14d, r14d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x78]
mov r8, rbx
call fcn.140029b70
xor r15d, r15d
cmp eax, 4
je 0x140029996
cmp eax, 1
je 0x140029626
test eax, eax
jne 0x1400296df
xor r12d, r12d
jmp 0x1400299a2
mov eax, dword [0x140064df0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x140029680
cmp byte [0x140064df4], 0
je 0x140029680
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x140029664
call fcn.14002f818
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0x10]
jmp 0x140029688
call fcn.14002c120
mov rbx, rax
test rbx, rbx
je 0x1400296df
cmp qword [rbx + 0x50], 0
jne 0x1400296df
lea r14, [rbx + 0x30]
cmp qword [rbx + 0x38], 0
je 0x1400296b6
mov rcx, r14
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
lea rdx, [rsp + 0x78]
mov ecx, 1
mov r8, r14
call sub.ntdll.dll_RtlDuplicateUnicodeString
test eax, eax
jns 0x1400296db
mov dword [rbx + 0x30], 0
mov qword [rbx + 0x38], 0
mov byte [rbx + 0x10], 1
xor r13d, r13d
xor r12d, r12d
mov r14d, 1
jmp 0x1400299a2
mov rcx, qword [0x140064dd0]
xor eax, eax
lea r8, [rsp + 0x88]
mov qword [r8], rax
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x14002975a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140029891
mov ecx, dword [rax + 0x2c]
test ecx, ecx
jne 0x14002977e
mov dword [rax + 0x2c], 0x58
mov ecx, 0x58
mov ecx, ecx
mov edx, 0x1000
sub rdx, rcx
add rax, rcx
mov r13d, 2
cmovne r13, rax
cmp rdx, 2
jb 0x1400297a4
test rax, rax
je 0x140029b54
mov r12, rdx
shr r12, 1
mov qword [rsp + 0x50], rdx
xor ebp, ebp
cmp rdx, 2
jb 0x14002980b
lea r14, [rsp + 0x98]
lea rdx, [rbp*2]
add rdx, r13
mov rcx, r14
call sub.ntdll.dll_RtlInitUnicodeString
cmp word [rsp + 0x98], 0
je 0x14002980b
mov rcx, r14
lea rdx, [rsp + 0x110]
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
test eax, eax
je 0x140029896
movzx eax, word [rsp + 0x9a]
shr rax, 1
add rbp, rax
cmp rbp, r12
jb 0x1400297bf
movzx r8d, word [rsp + 0x110]
lea rax, [r8 + rbp*2]
add rax, 4
mov rcx, qword [rsp + 0x50]
and rcx, 0xfffffffffffffffe
cmp rax, rcx
ja 0x140029896
mov rcx, r12
sub rcx, rbp
jb 0x140029b5f
test r13, r13
setne al
xor r12, rbp
cmp rcx, 0xffffffffffffffff
setne cl
or r12, r13
je 0x140029853
and al, cl
je 0x140029b54
test r13, r13
lea r14, [r13 + rbp*2]
mov eax, 2
cmove r14, rax
mov rdx, qword [rsp + 0x118]
mov rcx, r14
call sub.ntdll.dll_memcpy
movzx ecx, word [rsp + 0x110]
and ecx, 0xfffffffe
add rcx, r14
mov r8d, 2
xor edx, edx
call sub.ntdll.dll_memset
jmp 0x140029896
call sub.ntdll.dll_RtlGetLastWin32Error
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x1400298c1
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x1400298c1
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rdx, qword [rdi]
lea rcx, [rsp + 0x78]
mov r8, rbx
call fcn.140029b70
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x14002991f
mov r14, qword [rdi]
mov bpl, 1
test r14, r14
je 0x14002992d
movzx eax, word [r14]
cmp eax, 0x5a4d
jne 0x14002992d
movsxd rax, dword [r14 + 0x3c]
lea r12, [r14 + rax]
cmp dword [r14 + rax], 0x4550
jne 0x140029930
movzx eax, word [r12 + 0x18]
cmp eax, 0x20b
jne 0x140029930
cmp dword [r12 + 0x50], 0x148
setb bpl
jmp 0x140029930
mov r15b, 1
xor r14d, r14d
mov r13b, 1
jmp 0x140029608
xor r12d, r12d
mov qword [rsp + 0x88], rbx
mov rax, qword [r15 + 0x18]
lea rbx, [rsp + 0x98]
mov rcx, rbx
call qword [0x14006a010]
mov eax, dword [rbx + 4]
mov dword [rsp + 0x90], eax
test bpl, bpl
je 0x14002996a
mov r15b, 1
xor r14d, r14d
mov r13b, 1
jmp 0x14002961e
mov eax, dword [r12 + 0x28]
add r14, rax
lea rcx, [rsp + 0x88]
mov rdx, r14
call fcn.14002b640
mov r15b, 1
test al, al
mov r14d, 0
mov r13b, 1
je 0x14002961e
mov r14d, 2
mov r12b, 1
xor r13d, r13d
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
cmp qword [rax + 0x30], 0
je 0x140029b15
mov rbx, qword [rdi]
lea rdx, [rsp + 0x110]
lea r8, [rsp + 0x88]
mov ecx, 1
call sub.ntdll.dll_RtlDuplicateUnicodeString
test eax, eax
jns 0x1400299f2
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov eax, dword [0x140064df0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x140029a0b
mov ebp, r13d
jmp 0x140029a57
mov ebp, r13d
cmp byte [0x140064df4], 0
je 0x140029a57
mov r13d, r14d
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x140029a3b
call fcn.14002f818
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x10]
jmp 0x140029a62
mov r13d, r14d
call fcn.14002c120
mov r14, rax
test r14, r14
je 0x140029aae
cmp qword [r14 + 0x50], 0
jne 0x140029aca
lea r15, [r14 + 0x40]
cmp qword [r14 + 0x48], 0
je 0x140029a81
mov rcx, r15
call sub.ntdll.dll_RtlFreeUnicodeString
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [r15], xmm0
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [r14 + 0x50], rbx
mov dword [r14 + 0x70], r13d
jmp 0x140029afa
lea rcx, [0x140064068]
mov rax, qword [0x140064068]
mov rax, qword [rax + 0x50]
call qword [0x14006a010]
test al, al
je 0x140029afa
mov byte [rsp + 0x28], r15b
mov dword [rsp + 0x20], r13d
lea r14, [rsp + 0x98]
lea rdx, [rsp + 0x88]
mov rcx, r14
mov r8, rbx
mov r9d, esi
call fcn.14002abf0
mov rcx, r14
call fcn.140029160
cmp qword [rsp + 0x90], 0
je 0x140029b12
lea rcx, [rsp + 0x88]
call sub.ntdll.dll_RtlFreeUnicodeString
mov r13d, ebp
or r13b, r12b
jne 0x140029b2e
mov rdx, qword [rdi]
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
mov esi, 0xc0000022
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140030050
mov eax, esi
add rsp, 0x538
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
int3