Function at 0x100010a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1b4
mov eax, dword [0x1001a018]
xor eax, esp
mov dword [esp + 0x1b0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x60], eax
push esi
push edi
mov esi, dword [ebx + 0x48]
push esi
mov eax, dword [esi]
call dword [eax + 0xa8]
mov eax, dword [esi]
lea ecx, [esp + 0x54]
push ecx
push 0
push esi
call dword [eax + 0x98]
test eax, eax
js 0x100014d2
xor edi, edi
cmp dword [ebx + 0x24], edi
je 0x1000124a
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x90]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x100014c8
mov eax, dword [esi]
lea ecx, [esp + 0x58]
push edi
push ecx
push 2
push dword [esp + 0x9c]
mov dword [esp + 0x68], edi
push dword [esp + 0xbc]
push dword [esp + 0xbc]
push esi
call dword [eax + 0x90]
test eax, eax
js 0x100014c8
push dword [esp + 0x58]
mov eax, dword [esi]
push dword [esp + 0x58]
push esi
call dword [eax + 0x80]
test eax, eax
js 0x10001238
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x6c]
push 0x10
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x1000122e
mov eax, dword [esp + 0xa8]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100187d0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebx + 0x30]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.10011ad0
mov eax, dword [esp + 0xb4]
fstp qword [esp + 0x50]
movsd xmm0, qword [esp + 0x50]
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100187d0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebx + 0x34]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.10011ad0
fstp qword [esp + 0x50]
movsd xmm0, qword [esp + 0x50]
add esp, 8
cvtpd2ps xmm0, xmm0
mov ecx, 1
cvttss2si eax, xmm0
imul eax, dword [esp + 0x6c]
add eax, dword [esp + 0x70]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, 0xff00ff
cmovne edi, ecx
mov eax, dword [esp + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esp + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
je 0x100014c8
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x48], ebp
inc dword [ebx + 0x18]
push dword [ebx + 0x18]
mov eax, dword [ebx]
add eax, 0x100
push eax
push str._ssnapshot_d.ce3dsnapshot
lea eax, [esp + 0xbc]
push 0x104
push eax
call fcn.100043f5
add esp, 0x14
lea eax, [esp + 0xb0]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 9
push eax
push 4
lea eax, [esp + 0x50]
push eax
push esi
call edi
mov eax, dword [ebx]
cmp dword [eax + 0x474], 0
je 0x1000133a
mov eax, dword [ebx]
mov eax, dword [eax + 0x464]
sub eax, 0
je 0x10001301
dec eax
je 0x100012fa
sub eax, 2
lea eax, [esp + 0xb0]
je 0x100012f3
push str..WTF
jmp 0x1000130d
push str..PNG
jmp 0x1000130d
push str..JPG
jmp 0x10001306
push str..BMP
lea eax, [esp + 0xb4]
push 0x104
push eax
call fcn.10004411
mov eax, dword [ebx]
add esp, 0xc
mov eax, dword [eax + 0x464]
push 0
push 0
push dword [esp + 0x5c]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXSaveSurfaceToFileA]
mov eax, dword [ebx]
push 0
push 0
push dword [esp + 0x5c]
mov eax, dword [eax + 0x464]
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXSaveSurfaceToFileInMemory]
push 0
test eax, eax
js 0x100013ad
mov eax, dword [ebx]
mov eax, dword [eax + 0x464]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
push 4
lea eax, [esp + 0x50]
push eax
push esi
call edi
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
push 4
lea eax, [esp + 0x50]
push eax
push esi
call edi
push 0
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x68]
push dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
jmp 0x100013d1
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 0
push eax
push 4
lea eax, [esp + 0x50]
push eax
push esi
call edi
push 0
lea eax, [esp + 0x44]
push eax
push 4
lea eax, [esp + 0x50]
push eax
push esi
call edi
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
lea eax, [esp + 0x44]
push eax
push 8
lea eax, [esp + 0x54]
push eax
push esi
call edi
push 0x1c
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0
cmp eax, 0x1c
jne 0x10001447
mov ecx, dword [esp + 0x78]
sub ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x84]
add eax, ecx
mov ecx, 0x2000
cmp eax, ecx
cmovb ecx, eax
lea eax, [esp + 0x44]
push eax
push 4
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ecx
push eax
push esi
call edi
push 0
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x64]
push dword [esp + 0x54]
jmp 0x10001464
lea eax, [esp + 0x44]
mov dword [esp + 0x60], 0
push eax
xorps xmm0, xmm0
lea eax, [esp + 0x64]
push 4
movlpd qword [esp + 0x54], xmm0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 0
push eax
push 4
lea eax, [esp + 0x50]
push eax
push esi
call edi
mov eax, dword [esp + 0x68]
test eax, eax
je 0x100014c1
mov ecx, eax
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001490
push 0
lea eax, [esp + 0x44]
sub ecx, edx
push eax
push 4
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
push esi
call edi
push 0
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x6c]
mov eax, dword [esp + 0x74]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100042a6
mov esp, ebp
pop ebp
ret 4