Function at 0x140006630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x60], r14
mov r14d, dword [rsp + 0xb0]
cmp r14d, 4
jb 0x140006669
mov rax, qword [rsp + 0xa8]
cmp dword [rax], 0x20534444
je 0x14000667b
mov eax, 0x80004005
mov r14, qword [rsp + 0x60]
add rsp, 0x98
ret
add r14d, 0xfffffffc
mov qword [rsp + 0x58], r15
lea r15, [rax + 4]
cmp r14d, 0x7c
jae 0x1400066a5
mov eax, 0x80004005
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
add rsp, 0x98
ret
mov qword [rsp + 0x90], rbx
mov rbx, r15
mov qword [rsp + 0x68], r13
mov eax, dword [rbx + 0xc]
mov r13, qword [rsp + 0xa0]
add r15, 0x7c
mov dword [r13 + 0x18], eax
mov eax, dword [rbx + 8]
add r14d, 0xffffff84
mov dword [r13 + 0x1c], eax
bt dword [rbx + 4], 0x17
mov ecx, 1
jae 0x1400066e4
mov eax, dword [rbx + 0x14]
jmp 0x1400066e6
mov eax, ecx
test eax, eax
mov dword [r13 + 0x20], eax
jne 0x1400066f2
mov dword [r13 + 0x20], ecx
mov eax, dword [rbx + 0x6c]
mov qword [rsp + 0x70], r12
and eax, 0xfc00
cmp eax, 0xfc00
jne 0x140006713
mov r12d, 6
mov dword [rsp + 0x28], r12d
jmp 0x140006722
test eax, eax
jne 0x140006b0e
mov r12d, ecx
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 0x18]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rsi
test eax, eax
mov qword [rsp + 0x78], rdi
mov edi, dword [rbx + 0x4c]
cmove eax, ecx
test dil, 4
lea r11, [0x14015e160]
mov dword [rsp + 0x20], eax
mov eax, 4
cmovne edi, eax
mov r10d, edi
mov r9d, edi
mov r8d, edi
and r10d, eax
mov edx, edi
and r9d, 0xc4462
and r8d, 0xe4040
and edx, 0xc4440
mov ecx, edi
and ecx, 0xc4040
mov eax, edi
movsxd r10, r10d
and eax, 0x80003
cmp dword [reloc.WS2_32.dll_sendto], 0
movsxd r9, r9d
movsxd r8, r8d
movsxd rdx, edx
movsxd rsi, ecx
movsxd rbp, eax
je 0x140006811
mov ecx, dword [rbx + 0x48]
cmp ecx, 0x20
jne 0x140006807
cmp dword [r11 + 8], edi
jne 0x140006807
test r10, r10
je 0x1400067c1
mov eax, dword [r11 + 0xc]
cmp dword [rbx + 0x50], eax
jne 0x140006807
test r9, r9
je 0x1400067cf
mov eax, dword [r11 + 0x10]
cmp dword [rbx + 0x54], eax
jne 0x140006807
test r8, r8
je 0x1400067dd
mov eax, dword [r11 + 0x14]
cmp dword [rbx + 0x58], eax
jne 0x140006807
test rdx, rdx
je 0x1400067eb
mov eax, dword [r11 + 0x18]
cmp dword [rbx + 0x5c], eax
jne 0x140006807
test rsi, rsi
je 0x1400067f9
mov eax, dword [r11 + 0x1c]
cmp dword [rbx + 0x60], eax
jne 0x140006807
test rbp, rbp
je 0x140006811
mov eax, dword [r11 + 0x20]
cmp dword [rbx + 0x64], eax
je 0x140006811
add r11, 0x24
cmp dword [r11], 0
jne 0x1400067a8
mov edi, dword [r11]
test edi, edi
jne 0x140006864
lea rdx, str.Unrecognized_pixel_format_in_DDS_file.
xor ecx, ecx
call fcn.1400039d0
mov eax, 0x80004005
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
add rsp, 0x98
ret
mov ecx, edi
call section..text
bt dword [rbx + 4], 0x17
mov rcx, rax
mov qword [rsp + 0x40], rax
jae 0x140006884
mov dword [r13 + 0x50], 4
jmp 0x140006899
mov eax, 3
mov edx, 5
cmp r12d, 6
cmove eax, edx
mov dword [r13 + 0x50], eax
xor r9d, r9d
cmp dword [rcx + 4], 1
jne 0x1400068c4
cmp r14d, 0x400
jb 0x140006826
mov qword [rsp + 0x38], r15
add r15, 0x400
add r14d, 0xfffffc00
jmp 0x1400068c9
mov qword [rsp + 0x38], r9
test r12d, r12d
mov eax, r9d
mov dword [rsp + 0x24], r9d
je 0x140006b07
mov rbx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x20]
nop
nop
nop
test eax, eax
mov r12d, dword [r13 + 0x18]
mov esi, dword [r13 + 0x1c]
mov ebp, dword [r13 + 0x20]
jne 0x14000690a
mov rax, r13
mov qword [rsp + 0x30], r13
jmp 0x14000694e
mov ecx, 0x68
call fcn.1401130c4
test rax, rax
je 0x140006afd
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov dword [rax], r9d
mov qword [rax + 8], r9
mov qword [rax + 0x10], r9
mov dword [rax + 0x44], r9d
mov dword [rax + 0x48], r9d
mov qword [rax + 0x58], r9
mov qword [rax + 0x60], r9
mov qword [rsp + 0x30], rax
mov qword [rcx + 0x60], rax
test r8d, r8d
mov r13d, r9d
je 0x140006ae0
nop
nop
test r13d, r13d
jne 0x14000696a
mov rbx, rax
jmp 0x1400069a7
mov ecx, 0x68
call fcn.1401130c4
test rax, rax
je 0x140006afd
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov dword [rax], r9d
mov qword [rax + 8], r9
mov qword [rax + 0x10], r9
mov dword [rax + 0x44], r9d
mov dword [rax + 0x48], r9d
mov qword [rax + 0x58], r9
mov qword [rax + 0x60], r9
mov qword [rbx + 0x58], rax
mov rbx, rax
cmp edi, 0x34545844
jg 0x140006a5a
cmp edi, 0x34545844
je 0x1400069e3
cmp edi, 0x31545844
je 0x140006a3f
cmp edi, 0x32545844
je 0x1400069e3
cmp edi, 0x32595559
je 0x140006a98
cmp edi, 0x33545844
jne 0x140006a7a
lea eax, [r12 + 3]
lea ecx, [rsi + 3]
shr eax, 2
shr ecx, 2
shl eax, 4
imul ecx, eax
mov edx, ecx
imul edx, ebp
cmp r14d, edx
mov dword [rbx + 0x40], ecx
mov rcx, qword [rsp + 0x38]
mov dword [rbx], edi
mov qword [rbx + 8], r15
mov dword [rbx + 0x3c], eax
mov qword [rbx + 0x10], rcx
mov dword [rbx + 0x18], r12d
mov dword [rbx + 0x1c], esi
mov dword [rbx + 0x20], ebp
mov dword [rbx + 0x44], r9d
mov dword [rbx + 0x48], r9d
jb 0x140006826
mov eax, edx
sub r14d, edx
add r15, rax
cmp r12d, 1
jne 0x140006ab1
mov eax, r12d
jmp 0x140006ab9
lea eax, [r12 + 3]
lea ecx, [rsi + 3]
shr eax, 2
shr ecx, 2
shl eax, 3
imul ecx, eax
mov edx, ecx
imul edx, ebp
jmp 0x1400069fc
cmp edi, 0x35545844
je 0x1400069e3
cmp edi, 0x42475247
je 0x140006a98
cmp edi, 0x47424752
je 0x140006a98
cmp edi, 0x59565955
je 0x140006a98
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
shr eax, 3
imul eax, r12d
mov ecx, eax
imul ecx, esi
mov edx, ecx
imul edx, ebp
jmp 0x1400069fc
lea eax, [r12 + 1]
shr eax, 1
shl eax, 2
mov ecx, eax
imul ecx, esi
mov edx, ecx
imul edx, ebp
jmp 0x1400069fc
shr r12d, 1
mov eax, 1
cmp esi, 1
jne 0x140006ac2
mov esi, eax
jmp 0x140006ac4
shr esi, 1
cmp ebp, 1
jne 0x140006acd
mov ebp, eax
jmp 0x140006acf
shr ebp, 1
mov rax, qword [rsp + 0x30]
inc r13d
cmp r13d, r8d
jb 0x140006960
mov eax, dword [rsp + 0x24]
inc eax
cmp eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
jae 0x140006b07
mov r13, qword [rsp + 0xa0]
jmp 0x1400068f0
mov eax, 0x8007000e
jmp 0x14000682b
xor eax, eax
jmp 0x14000682b
lea rdx, [0x140119ef0]
xor ecx, ecx
call fcn.1400039d0
mov eax, 0x80004005
jmp 0x140006840