Function at 0x140012ae0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400a3c40]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15d, r9d
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x70], rdx
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.140008b30
nop
mov rdi, qword [rbp - 0x70]
lea rbx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rbx, qword [rbp - 0x80]
call fcn.14005afa0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.1400113f0
nop
lea rcx, [rbp - 0x40]
call fcn.140012040
test al, al
sete bl
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140012bcc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012bc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133b2
call fcn.14005c324
test bl, bl
je 0x140012cc6
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
xor edi, edi
mov qword [rsi], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], recv
mov byte [rsi], dil
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], recv
mov byte [rsi + 0x20], dil
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140012c3e
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012c39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a6
call fcn.14005c324
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140012c88
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140012c83
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x1400133ac
mov rcx, rax
call fcn.14005c324
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], recv
mov byte [r14], 0
mov rax, rsi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14005bdd0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x30]
call fcn.14005e450
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8d, 0x20
lea rcx, [rbp + 0x30]
call fcn.140015bd0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], r12
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x48], 1
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x78]
mov qword [rsp + 0x60], rax
test rax, rax
sete byte [rsp + 0x68]
mov byte [rsp + 0x69], dil
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm1
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400187c0
test al, al
jne 0x140012e66
mov rbx, qword [rsp + 0x40]
cmp byte [rsp + 0x48], 0
jne 0x140012dd8
test rbx, rbx
je 0x140012dd0
mov rax, qword [rbx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x140012dbc
mov rax, qword [rbx + 0x50]
cmp dword [rax], 0
jle 0x140012dbc
movzx eax, byte [rcx]
jmp 0x140012dc5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
cmp eax, 0xffffffff
je 0x140012dd0
mov byte [rsp + 0x49], al
jmp 0x140012ddd
mov rbx, rdi
mov qword [rsp + 0x40], rbx
movzx eax, byte [rsp + 0x49]
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x58]
cmp rdx, qword [rbp - 0x50]
je 0x140012df3
mov byte [rdx], al
inc qword [rbp - 0x58]
jmp 0x140012e01
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.140018890
test rbx, rbx
je 0x140012e46
mov rax, qword [rbx + 0x38]
cmp qword [rax], 0
je 0x140012e31
mov rcx, qword [rbx + 0x50]
mov eax, dword [rcx]
test eax, eax
jle 0x140012e31
dec eax
mov dword [rcx], eax
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x140012e3a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140012e46
mov byte [rsp + 0x48], 0
jmp 0x140012e50
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x48], 1
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400187c0
test al, al
je 0x140012d91
mov eax, 0x5a4d
mov rcx, qword [rbp - 0x60]
cmp word [rcx], ax
je 0x140012fd5
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], recv
mov byte [rsi + 0x20], 0
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ed1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a0
call fcn.14005c324
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], r12
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.14000ea10
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xe0], rax
lea rcx, [rbp + 0xe0]
call fcn.14005a894
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140012f83
inc rdx
mov rcx, qword [rbp - 0x80]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140012f7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a6
call fcn.14005c324
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140012c88
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140012c83
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400133ac
mov rcx, r8
jmp 0x140012c83
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
je 0x1400130bd
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], recv
mov byte [rsi + 0x20], 0
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013041
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a0
call fcn.14005c324
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], r12
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.14000ea10
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xe0], rax
lea rcx, [rbp + 0xe0]
call fcn.14005a894
nop
jmp 0x140012f48
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], recv
mov r8d, 5
lea rdx, [0x140091afc]
lea rcx, [rsp + 0x40]
call fcn.140003650
lea r8, [rsp + 0x40]
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x40]
call fcn.1400129a0
mov rax, r15
mov r15, qword [rbp - 0x40]
cmp rax, r15
jbe 0x1400131e7
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], recv
mov byte [rsi + 0x20], 0
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14001317c
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001316b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a0
call fcn.14005c324
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], r12
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.14000ea10
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xe0], rax
lea rcx, [rbp + 0xe0]
call fcn.14005a894
nop
jmp 0x140012f48
mov qword [rbp - 0x20], rdi
movdqa xmm0, xmmword [0x1400927e0]
movdqa xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov qword [rbp], rdi
movdqa xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
lea rcx, [rbp - 0x20]
call fcn.140003650
lea rax, [rbp]
cmp rax, r14
je 0x14001324e
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140013241
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rcx, [rbp]
call fcn.140003650
movzx ecx, word [rbx + 6]
mov dword [rbp + 0x28], ecx
mov rax, qword [rbp - 0x38]
mov dword [rbp + 0x20], eax
mov dword [rbp + 0x24], r15d
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movdqa xmm0, xmmword [0x1400927e0]
movdqa xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
movaps xmm0, xmmword [rbp]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [rbp + 0x10]
movups xmmword [rsi + 0x30], xmm1
movdqa xmm0, xmmword [0x1400927e0]
movdqa xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
mov dword [rsi + 0x40], eax
mov dword [rsi + 0x44], r15d
mov dword [rsi + 0x48], ecx
lea rcx, [rbp - 0x20]
call fcn.140013470
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400132fb
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400132ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a0
call fcn.14005c324
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], r12
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.14000ea10
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xe0], rax
lea rcx, [rbp + 0xe0]
call fcn.14005a894
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140012f83
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400133a6
jmp 0x140012f7e
call fcn.140027658
nop
call fcn.140027658
nop
call fcn.140027658
nop
call fcn.140027658
int3