Function at 0x180001190
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [0x180022028]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r12d, r12d
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rbp - 0x60], r8
mov qword [rbp - 0x78], r12
cmp dword [rcx + 0xcc], r12d
je 0x1800019b7
mov rax, qword [rdx]
mov qword [rsp + 0x2a8], rsi
mov esi, 1
lea r8, [rbp - 0x78]
mov edx, esi
xor r9d, r9d
mov rcx, r15
call qword [rax + 0x2c8]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x380]
test eax, eax
je 0x180001258
mov rcx, qword [rsp + 0x48]
lea r8, [rbp - 0x40]
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x390]
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x48]
test eax, eax
mov rax, qword [rcx]
js 0x180001252
call qword [rax + 0x140]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov r8d, esi
call qword [rax + 0x1d0]
jmp 0x180001258
call qword [rax + 0x140]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800019af
mov qword [rbp - 0x58], r12
mov qword [rsp + 0x78], r12
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
call qword [rax + 0x40]
mov eax, dword [rbp - 0x18]
mov rcx, qword [rbp - 0x78]
mov dword [rbp + 0x40], eax
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800019a5
mov rax, qword [rcx]
lea r8, [rbp - 0x58]
lea rdx, [0x18001e730]
call qword [rax]
test eax, eax
js 0x18000199a
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x2a0], r14
mov rax, qword [rcx]
call qword [rax + 0x50]
cmp dword [rbp + 0x44], esi
mov r14d, r12d
seta r14b
mov qword [rbp + 0x44], rsi
cmp dword [rdi + 0xd0], r12d
je 0x1800012f9
test r14d, r14d
jne 0x1800012f9
mov dword [rbp + 0x50], r12d
mov dword [rbp + 0x54], 0x20000
mov dword [rbp + 0x4c], 3
jmp 0x180001301
mov dword [rbp + 0x54], r12d
mov dword [rbp + 0x4c], r12d
mov rcx, qword [rdi + 0xf8]
lea r9, [rsp + 0x58]
lea rdx, [rbp + 0x30]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x28]
test eax, eax
js 0x180001988
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x2b0], rbx
mov ebx, r12d
test r14d, r14d
je 0x1800013c5
mov eax, dword [rbp + 0x40]
mov r10, qword [rcx]
mov r9, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov dword [rsp + 0x20], r12d
call qword [r10 + 0x1c8]
cmp dword [rdi + 0xd0], ebx
je 0x180001535
mov rcx, qword [rdi + 0xf8]
mov dword [rbp + 0x50], r12d
mov dword [rbp + 0x54], 0x20000
mov dword [rbp + 0x4c], 3
mov rax, qword [rcx]
lea r9, [rbp - 0x48]
lea rdx, [rbp + 0x30]
xor r8d, r8d
call qword [rax + 0x28]
test eax, eax
js 0x1800013d3
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x178]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x58], rax
jmp 0x1800013d3
mov rax, qword [rcx]
mov r8, qword [rsp + 0x78]
call qword [rax + 0x178]
cmp dword [rdi + 0xd0], ebx
je 0x180001535
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x38]
mov r9d, esi
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x20], r12d
call qword [rax + 0x70]
test eax, eax
js 0x180001975
mov eax, dword [rbp + 0x30]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, dword [rdi + 0xdc]
call fcn.180014ff0
mov eax, dword [rbp + 0x34]
cvttss2si r14d, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, dword [rdi + 0xe0]
call fcn.180014ff0
mov r9d, dword [rbp + 0x40]
lea eax, [r9 - 1]
cvttss2si edx, xmm0
cmp eax, 7
ja 0x180001459
mov r8d, 0x10
jmp 0x18000147d
lea eax, [r9 - 9]
cmp eax, 0xd
ja 0x18000146a
mov r8d, 8
jmp 0x18000147d
lea eax, [r9 - 0x17]
cmp eax, 0x18
ja 0x18000151a
mov r8d, 4
imul edx, dword [rbp - 0x30]
imul r14d, r8d
movsxd rcx, r14d
add rcx, qword [rbp - 0x38]
add rdx, rcx
cmp r8d, 4
je 0x180001508
cmp r8d, 8
je 0x1800014e5
cmp r8d, 0x10
jne 0x18000151a
cmp r9d, 2
jne 0x1800014d5
movss xmm0, dword [rdx]
movss xmm2, dword [0x18001e7c4]
ucomiss xmm0, xmm2
jp 0x180001518
jne 0x180001518
movss xmm1, dword [rdx + 4]
xorps xmm0, xmm0
ucomiss xmm1, xmm0
jp 0x180001518
jne 0x180001518
movss xmm0, dword [rdx + 8]
ucomiss xmm0, xmm2
jp 0x180001518
jmp 0x180001516
cmp dword [rdx], 0xffffffff
jne 0x180001518
cmp dword [rdx + 4], ebx
jne 0x180001518
cmp dword [rdx + 8], 0xffffffff
jmp 0x180001516
cmp r9d, 0xa
jne 0x180001501
mov eax, 0x3c00
cmp word [rdx], ax
jne 0x180001518
cmp word [rdx + 2], bx
jne 0x180001518
cmp word [rdx + 4], ax
jmp 0x180001516
mov eax, 0xffff
jmp 0x1800014f0
cmp byte [rdx], 0xff
jne 0x180001518
cmp byte [rdx + 1], bl
jne 0x180001518
cmp byte [rdx + 2], 0xff
je 0x18000151a
mov ebx, esi
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x78]
test ebx, ebx
je 0x180001975
mov r9, qword [rdi]
inc dword [rdi + 0xc4]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
mov eax, dword [rdi + 0xc4]
lea r8, str._ssnapshot_d.ce3dsnapshot
lea rcx, [rbp + 0x80]
add r9, 0x100
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.180006908
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov r8d, 4
mov rcx, rax
mov dword [rsp + 0x44], 0xb
mov rbx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi]
mov qword [rbp - 0x70], r12
mov edx, dword [rcx + 0x474]
test edx, edx
je 0x18000164e
mov rcx, qword [rdi]
mov r8d, dword [rcx + 0x464]
test r8d, r8d
je 0x180001615
dec r8d
je 0x18000160c
mov edx, 0x104
lea rcx, [rbp + 0x80]
cmp r8d, 2
je 0x180001603
lea r8, str..WTF
jmp 0x180001628
lea r8, str..PNG
jmp 0x180001628
lea r8, str..JPG
jmp 0x18000161c
lea r8, str..BMP
lea rcx, [rbp + 0x80]
mov edx, 0x104
call fcn.18000692c
mov rax, qword [rdi]
lea r9, [rbp + 0x80]
mov r8d, dword [rax + 0x464]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.d3dx11_43.dll_D3DX11SaveTextureToFileA]
mov rax, qword [rdi]
lea r9, [rbp - 0x70]
mov dword [rsp + 0x20], r12d
mov r8d, dword [rax + 0x464]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.d3dx11_43.dll_D3DX11SaveTextureToMemory]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
test eax, eax
js 0x1800016fd
mov rax, qword [rdi]
mov ecx, dword [rax + 0x464]
mov dword [rsp + 0x44], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x20]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8d, dword [rsp + 0x44]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180001729
mov rcx, rbx
mov dword [rsp + 0x44], r12d
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 8
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x1800017bd
mov rdx, qword [rbp]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rbp + 0x18]
mov rax, rdx
sub rax, r8
add rax, rcx
cmp rax, 0x2000
jae 0x18000178b
sub ecx, r8d
add ecx, edx
mov dword [rsp + 0x50], ecx
jmp 0x180001793
mov dword [rsp + 0x50], 0x2000
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
jmp 0x1800017d2
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x60], r12
mov r8d, 4
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [r15]
lea r9, [rbp - 0x80]
mov r8d, esi
xor edx, edx
mov rcx, r15
mov qword [rbp - 0x80], r12
call qword [rax + 0x240]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1800018f7
mov qword [rsp + 0x68], r12
mov rax, qword [rcx]
lea rdx, [rbp + 0x60]
call qword [rax + 0x50]
mov rcx, qword [rdi + 0xf8]
mov dword [rbp + 0x6c], 0x20000
mov qword [rbp + 0x64], 3
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea rdx, [rbp + 0x60]
xor r8d, r8d
call qword [rax + 0x18]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1800018e9
mov rcx, qword [rsp + 0x48]
mov r8, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x178]
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x28]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x68]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x20], r12d
call qword [rax + 0x70]
test eax, eax
js 0x1800018de
mov eax, dword [rbp + 0x60]
lea r9, [rsp + 0x40]
lea rdx, [rbp - 0x68]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x68], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbp + 0x60]
mov rdx, qword [rbp - 0x28]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
xor r8d, r8d
mov esi, r12d
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
je 0x180001918
lea r9, [rsp + 0x40]
lea rdx, [rbp - 0x50]
mov r8d, 4
mov rcx, rbx
mov dword [rbp - 0x50], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18000196c
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r12b
jne 0x180001925
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov r8d, 4
mov rcx, rbx
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rbp - 0x60]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, qword [rsp + 0x2a8]
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180006780
add rsp, 0x2b8
pop r15
pop r12
pop rdi
pop rbp
ret