Function at 0x10001100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1f4
mov eax, dword [0x1001b018]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], 0
cmp dword [edi + 0x4c], 0
je 0x10001791
mov eax, dword [edi + 0x78]
lea edx, [esp + 0x54]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe0]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x10001791
mov dword [esp + 0x5c], 0
lea edx, [esp + 0x9c]
mov dword [esp + 0x48], 0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x20]
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0x48]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x54]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x10001787
mov eax, dword [ecx]
lea edx, [esp + 0x5c]
push edx
push 0x10019750
push ecx
call dword [eax]
test eax, eax
js 0x1000177d
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0xb0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, 1
mov dword [esp + 0xc8], 0
cmp eax, dword [esp + 0xc4]
mov dword [esp + 0xc4], eax
sbb esi, esi
neg esi
cmp dword [edi + 0x50], 0
je 0x10001214
test esi, esi
jne 0x10001214
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], 0x20000
mov dword [esp + 0xcc], 3
jmp 0x1000122a
mov dword [esp + 0xd4], 0
mov dword [esp + 0xcc], 0
mov eax, dword [edi + 0x78]
lea edx, [esp + 0x30]
push edx
push 0
lea edx, [esp + 0xb8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x124]
test eax, eax
js 0x10001773
mov eax, dword [edi + 0x78]
xor ebx, ebx
mov ecx, dword [eax]
test esi, esi
je 0x100012dc
push dword [esp + 0xc0]
push ebx
push dword [esp + 0x50]
push ebx
push dword [esp + 0x40]
push eax
call dword [ecx + 0x98]
cmp dword [edi + 0x50], ebx
je 0x100012eb
mov eax, dword [edi + 0x78]
lea edx, [esp + 0x4c]
push edx
push ebx
mov dword [esp + 0xd8], ebx
lea edx, [esp + 0xb8]
mov dword [esp + 0xdc], 0x20000
mov dword [esp + 0xd4], 3
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x124]
test eax, eax
js 0x100012eb
mov eax, dword [edi + 0x78]
push dword [esp + 0x30]
push dword [esp + 0x50]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
jmp 0x100012ef
push dword [esp + 0x48]
push dword [esp + 0x34]
push eax
call dword [ecx + 0x84]
mov ecx, dword [esp + 0x30]
cmp dword [edi + 0x50], ebx
je 0x100013e2
mov eax, dword [ecx]
lea edx, [esp + 0x78]
push edx
push 0
push 1
push 0
push ecx
call dword [eax + 0x28]
test eax, eax
js 0x10001769
mov eax, dword [esp + 0xb0]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10019810]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x5c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.10012ac0
mov eax, dword [esp + 0xbc]
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10019810]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x60]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.10012ac0
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
add esp, 8
cvtpd2ps xmm0, xmm0
push 0
cvttss2si eax, xmm0
imul eax, dword [esp + 0x80]
add eax, dword [esp + 0x7c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, 0xff00ff
mov eax, 1
cmovne ebx, eax
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test ebx, ebx
je 0x10001769
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x38], ebp
mov eax, dword [edi]
inc dword [edi + 0x44]
add eax, 0x100
push dword [edi + 0x44]
push eax
push str._ssnapshot_d.ce3dsnapshot
lea eax, [esp + 0xfc]
push 0x104
push eax
call fcn.100053e5
add esp, 0x14
lea eax, [esp + 0xf0]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x38], 0xa
push eax
push 4
lea eax, [esp + 0x40]
push eax
push esi
call ebx
mov eax, dword [edi]
cmp dword [eax + 0x474], 0
je 0x100014c6
mov eax, dword [edi]
mov eax, dword [eax + 0x464]
sub eax, 0
je 0x10001491
dec eax
je 0x1000148a
sub eax, 2
lea eax, [esp + 0xf0]
je 0x10001483
push str..WTF
jmp 0x1000149d
push str..PNG
jmp 0x1000149d
push str..JPG
jmp 0x10001496
push str..BMP
lea eax, [esp + 0xf4]
push 0x104
push eax
call fcn.10005401
add esp, 0xc
lea eax, [esp + 0xf0]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x464]
push eax
push dword [esp + 0x38]
call dword [sym.imp.d3dx10_43.dll_D3DX10SaveTextureToFileA]
push 0
lea eax, [esp + 0x64]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x464]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.d3dx10_43.dll_D3DX10SaveTextureToMemory]
push 0
test eax, eax
js 0x10001545
mov eax, dword [edi]
mov eax, dword [eax + 0x464]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x40]
push eax
push esi
call ebx
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x40]
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x68]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push eax
push esi
call ebx
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000156d
lea eax, [esp + 0x30]
mov dword [esp + 0x38], 0
push eax
push 4
lea eax, [esp + 0x40]
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x40]
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x30]
push eax
push 8
lea eax, [esp + 0x44]
push eax
push esi
call ebx
push 0x1c
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0
cmp eax, 0x1c
jne 0x100015db
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x90]
add eax, ecx
mov ecx, 0x2000
cmp eax, ecx
cmovb ecx, eax
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x58]
push dword [esp + 0x44]
jmp 0x100015f8
lea eax, [esp + 0x30]
mov dword [esp + 0x54], 0
push eax
xorps xmm0, xmm0
lea eax, [esp + 0x58]
push 4
movlpd qword [esp + 0x44], xmm0
push eax
push esi
call ebx
mov eax, dword [edi + 0x78]
lea edx, [esp + 0x58]
push edx
push 1
mov dword [esp + 0x60], 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x9c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], 1
test ecx, ecx
je 0x1000170f
mov dword [esp + 0x44], 0
lea edx, [esp + 0xdc]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x30]
mov eax, dword [edi + 0x78]
lea edx, [esp + 0x44]
push edx
push 0
mov dword [esp + 0xf0], 0x20000
lea edx, [esp + 0xe4]
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 3
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x11c]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x100016fe
mov eax, dword [edi + 0x78]
push dword [esp + 0x58]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x70]
push edx
push 0
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x100016f4
mov eax, dword [esp + 0xdc]
push 0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x80]
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0xe4]
push dword [esp + 0x7c]
push esi
call ebx
mov eax, dword [esp + 0x44]
push eax
mov dword [esp + 0x50], 0
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esp + 0x4c], 0
je 0x10001728
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x6c], 0
push eax
push 4
lea eax, [esp + 0x74]
push eax
push esi
call ebx
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x10001762
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001735
push 0
lea eax, [esp + 0x30]
sub ecx, edx
push eax
push 4
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x6c]
push edi
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10005296
mov esp, ebp
pop ebp
ret 4