Function at 0x14012a450
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1403b9e40]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
lea rcx, str.MSVCRT.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
mov r13d, r14d
mov qword [rsp + 0xa0], r14
test rbx, rbx
je 0x14012a537
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x14012aecc
cmp rbx, 0x1000
jb 0x14012a4f8
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14012aed2
call qword [sym.imp.mfc140.dll_Ordinal_1485]
test rax, rax
je 0x14012aec6
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x14012a504
mov rcx, rbx
call qword [sym.imp.mfc140.dll_Ordinal_1485]
mov r15, rax
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x90], r15
lea r13, [rbx + r15]
mov qword [rsp + 0xa0], r13
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.1402e8c20
mov rdx, r13
mov qword [rsp + 0x98], rdx
jmp 0x14012a54c
mov rdx, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x60], r15
test rbx, rbx
je 0x14012a570
mov rcx, r15
sub rdi, r15
nop word [rax + rax]
movzx eax, byte [rcx + rdi]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x14012a560
cmp r15, rdx
je 0x14012a5a0
mov eax, 0x5a4d
cmp word [r15], ax
je 0x14012a60a
lea rdx, [0x14039a318]
lea rcx, [0x1403bd110]
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
nop
test r15, r15
je 0x14012a5d8
sub r13, r15
cmp r13, 0x1000
mov rax, r15
jb 0x14012a5cd
mov r15, qword [r15 - 8]
sub rax, r15
add r13, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012aec6
mov rdx, r13
mov rcx, r15
call fcn.1402b9400
mov eax, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1402b93e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movsxd rdx, dword [r15 + 0x3c]
add rdx, r15
mov qword [rsp + 0x78], rdx
cmp dword [rdx], 0x4550
je 0x14012a62a
lea rdx, [0x14039a328]
jmp 0x14012a58b
lea rcx, [rdx + 0x18]
mov qword [rsp + 0x20], rcx
movzx eax, word [rcx]
mov r8d, 0x10b
cmp ax, r8w
jne 0x14012a685
xor sil, sil
mov qword [rsp + 0x50], reloc.WS2_32.dll_recv
mov r12d, 0x98
mov r14d, 0x18
mov qword [rsp + 0x58], 0x78
mov qword [rsp + 0x88], 0x3c
mov qword [rsp + 0x30], rdx
movzx ebx, word [rdx + 0x14]
add rbx, rdx
mov edx, dword [rcx + 0x38]
add rbx, r14
xor ecx, ecx
jmp 0x14012a6dd
mov ecx, 0x20b
cmp ax, cx
jne 0x14012ae75
mov sil, 1
mov rcx, rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x20], r14
lea rax, [rdx + 0x28]
mov qword [rsp + 0x50], rax
lea r12, [rdx + 0xb0]
lea r14, [rdx + 0x30]
lea rax, [rdx + 0x90]
mov qword [rsp + 0x58], rax
lea rax, [rdx + 0x54]
mov qword [rsp + 0x88], rax
movzx ebx, word [rdx + 0x14]
add rbx, 0x18
mov edx, dword [rdx + 0x50]
add rbx, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14012a719
lea rdx, [0x14039a350]
jmp 0x14012a58b
lea rdx, [0x14039a360]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
mov rdx, rdi
call fcn.14012b650
mov rcx, rax
call fcn.14012dec0
test sil, sil
je 0x14012a750
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
jmp 0x14012a758
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov r8d, eax
mov rdx, r15
mov rcx, rdi
call fcn.1402e8580
lea rdx, str.PE_
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
xor edx, edx
mov ecx, edx
mov dword [rsp + 0x88], edx
mov rax, qword [rsp + 0x30]
cmp dx, word [rax + 6]
jae 0x14012a82c
mov r12d, 1
mov r13, rax
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x14012a806
mov ecx, dword [rbx + 0xc]
add rcx, rdi
mov edx, dword [rbx + 0x14]
add rdx, r15
mov r8d, eax
call fcn.1402e8580
lea rdx, [0x14039a394]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
mov edx, r12d
call fcn.14012bc50
mov rcx, rax
lea rdx, [0x14039a388]
call fcn.14012dc10
mov rdx, rbx
mov rcx, rax
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
mov ecx, dword [rsp + 0x88]
inc ecx
mov dword [rsp + 0x88], ecx
add rbx, 0x28
inc r12d
movzx eax, word [r13 + 6]
cmp ecx, eax
jl 0x14012a7a4
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x38]
test sil, sil
je 0x14012a83b
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
jmp 0x14012a844
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x68]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x14012aa40
mov ebx, ecx
mov rdx, rdi
add rbx, rdi
mov qword [rsp + 0x88], rbx
cmp dword [rbx + 0xc], 0
je 0x14012aa40
nop dword [rax]
mov ebx, dword [rbx + 0xc]
add rbx, rdx
lea rdx, [0x14039a398]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
mov rdx, rbx
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14012aab5
xor r11d, r11d
mov r9d, r11d
mov r10d, r11d
mov rbx, qword [rsp + 0x88]
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x28]
add rax, rdx
test sil, sil
je 0x14012a8df
mov r10d, dword [rbx + 0x10]
add r10, rdx
jmp 0x14012a8e6
mov r9d, dword [rbx + 0x10]
add r9, rdx
mov r14, rax
test sil, sil
cmove r14, r11
mov r12, r11
cmove r12, rax
sub r10, r14
mov qword [rsp + 0x70], r10
sub r9, r12
mov qword [rsp + 0x68], r9
mov rdi, r11
test sil, sil
je 0x14012a96a
mov rax, qword [r14]
test rax, rax
je 0x14012aa13
js 0x14012a924
lea rdi, [rdx + 2]
add rdi, rax
mov rbx, rax
shr rbx, 0x3f
movzx ecx, ax
test rax, rax
cmovns ecx, r11d
test ebx, ebx
mov edx, ecx
jne 0x14012a93e
mov rdx, rdi
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rsp + 0x20]
mov qword [rsp + 0x20], r8
mov r8, qword [rsp + 0x50]
mov qword [rsp + 0x50], r8
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x38], rdx
xor r11d, r11d
jmp 0x14012a9b9
mov eax, dword [r12]
test eax, eax
je 0x14012aa13
mov rcx, r8
jns 0x14012a985
mov ebx, 1
movzx edx, ax
jmp 0x14012a941
lea rdi, [rdx + 2]
add rdi, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r11d, r11d
mov ebx, r11d
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rcx
test rax, rax
je 0x14012aa6a
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x28]
test sil, sil
je 0x14012aa01
mov rcx, qword [rsp + 0x70]
mov qword [r14 + rcx], rax
add r14, 8
jmp 0x14012a907
mov rcx, qword [rsp + 0x68]
mov dword [r12 + rcx], eax
add r12, 4
jmp 0x14012a907
mov rbx, qword [rsp + 0x88]
add rbx, 0x14
mov qword [rsp + 0x88], rbx
cmp dword [rbx + 0xc], 0
jne 0x14012a870
mov rdi, qword [rsp + 0x28]
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x38]
lea rdx, [0x14039a3f0]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
test sil, sil
je 0x14012aacd
mov rax, qword [r14]
mov r14, qword [rsp + 0x20]
jmp 0x14012aad6
lea rax, [0x14039a3c8]
test ebx, ebx
cmovne rdi, rax
lea rdx, [0x14039a3d8]
lea rcx, [0x1403bd110]
call fcn.14012dc10
mov rdx, rdi
mov rcx, rax
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14012a5a0
lea rdx, [0x14039a3b0]
lea rcx, [0x1403bd110]
call fcn.14012dc10
mov rdx, rbx
jmp 0x14012aa8d
mov r14, qword [rsp + 0x20]
mov eax, dword [r14 + 0x1c]
mov rbx, rdi
sub rbx, rax
mov qword [rsp + 0x58], rbx
je 0x14012ac81
lea rdx, [0x14039a400]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
mov rdx, rbx
call fcn.14012b850
mov rcx, rax
call fcn.14012dec0
test sil, sil
je 0x14012ab18
mov rcx, qword [r12]
jmp 0x14012ab1f
mov rcx, qword [r14 + 0x88]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x14012ac81
mov r12d, ecx
add r12, rdi
mov eax, dword [r12 + 4]
test eax, eax
je 0x14012ac81
mov r8d, 0xfff
mov r13, qword [rsp + 0x28]
nop dword [rax]
mov edx, dword [r12]
mov dword [rsp + 0x88], edx
sub rax, 8
shr rax, 1
xor r14d, r14d
cdqe
test rax, rax
jle 0x14012ac5a
mov r15, rax
movzx ecx, word [r12 + r14*2 + 8]
movzx eax, cx
shr ax, 0xc
and cx, r8w
cmp ax, 0xa
jne 0x14012abe3
test sil, sil
je 0x14012ac4e
movzx eax, cx
mov ebx, edx
add rax, r13
add rbx, rax
mov rax, qword [rsp + 0x58]
add qword [rbx], rax
mov rdi, qword [rbx]
lea rdx, [0x14039a420]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
mov rdx, rbx
call fcn.14012b650
mov rcx, rax
lea rdx, [0x14039a414]
call fcn.14012dc10
mov rcx, rax
mov rdx, rdi
call fcn.14012b850
jmp 0x14012ac39
cmp ax, 3
jne 0x14012ac4e
test sil, sil
jne 0x14012ac4e
movzx eax, cx
mov ebx, edx
add rax, r13
add rbx, rax
mov rax, qword [rsp + 0x58]
add dword [rbx], eax
mov edi, dword [rbx]
lea rdx, [0x14039a420]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
mov rdx, rbx
call fcn.14012b650
mov rcx, rax
lea rdx, [0x14039a414]
call fcn.14012dc10
mov rcx, rax
mov edx, edi
call fcn.14012ba50
mov rcx, rax
call fcn.14012dec0
mov r8d, 0xfff
mov edx, dword [rsp + 0x88]
inc r14
cmp r14, r15
jl 0x14012ab73
mov eax, dword [r12 + 4]
add r12, rax
mov eax, dword [r12 + 4]
test eax, eax
jne 0x14012ab50
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x28]
test sil, sil
mov rax, qword [rsp + 0x48]
jne 0x14012ac90
mov rax, qword [rsp + 0x78]
movzx ebx, word [rax + 0x14]
add rbx, rax
add rbx, 0x18
mov r14, qword [rsp + 0x30]
xor r12d, r12d
cmp r12w, word [r14 + 6]
jae 0x14012ad58
mov ecx, 2
nop dword [rax]
nop word [rax + rax]
mov r8d, 1
mov eax, dword [rbx + 0x24]
bt eax, 0x1d
jae 0x14012ace9
test eax, eax
jns 0x14012acdb
mov r8d, 0x40
jmp 0x14012acfd
bt eax, 0x1e
jae 0x14012acfd
mov r8d, 0x20
jmp 0x14012acfd
test eax, eax
jns 0x14012acf5
mov r8d, 4
jmp 0x14012acfd
bt eax, 0x1e
cmovb r8d, ecx
mov ecx, dword [rbx + 0xc]
add rcx, rdi
mov edx, dword [rbx + 8]
lea r9, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14012ad66
lea rdx, [0x14039a450]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rdx, rbx
mov rcx, rax
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
inc r12d
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp r12d, eax
mov ecx, 2
jl 0x14012acc0
test sil, sil
je 0x14012add8
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
jmp 0x14012ade0
lea rdx, [0x14039a438]
lea rcx, [0x1403bd110]
call fcn.14012dc10
mov rdx, rbx
mov rcx, rax
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
test r15, r15
je 0x14012a5d8
sub r13, r15
mov rax, r15
cmp r13, 0x1000
jb 0x14012a5cd
add r13, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012aed8
jmp 0x14012a5cd
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x10]
mov ebx, eax
add rbx, rdi
lea rdx, [0x14039a468]
lea rcx, [0x1403bcf70]
call fcn.14012dc10
mov rcx, rax
mov rdx, rbx
call fcn.14012b650
mov rcx, rax
call fcn.14012dec0
nop
call rbx
nop
jmp 0x14012ae26
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
test r15, r15
je 0x14012a5dd
sub r13, r15
mov rax, r15
cmp r13, 0x1000
jb 0x14012ae65
add r13, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14012aec6
mov rdx, r13
mov rcx, r15
call fcn.1402b9400
jmp 0x14012a5dd
lea rdx, [0x14039a338]
lea rcx, [0x1403bd110]
call fcn.14012dc10
mov rcx, rax
call fcn.14012dec0
nop
test r15, r15
je 0x14012a5d8
sub r13, r15
mov rax, r15
cmp r13, 0x1000
jb 0x14012a5cd
add r13, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14012a5cd
call fcn.1402c6da8
int3
call fcn.14012f640
int3
call fcn.140129520
int3
call fcn.1402c6da8
int3