Function at 0x10001100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0x1001a030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x138], edi
cmp dword [ebx + 0x70], edi
je 0x10001a3d
mov edx, dword [eax]
mov edx, dword [edx + 0x164]
push edi
lea ecx, [ebp - 0x138]
push ecx
push 1
push eax
call edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c0]
push eax
call edx
test eax, eax
je 0x100011bd
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
lea edx, [ebp - 0x124]
push edx
push 1
push eax
mov eax, dword [ecx + 0x1c8]
call eax
test eax, eax
mov eax, dword [ebx + 0x98]
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push eax
mov eax, dword [ecx + 0xa0]
jl 0x100011bb
call eax
mov eax, dword [ebp - 0x114]
mov edx, dword [ebp - 0x124]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0xe8]
call eax
jmp 0x100011bd
call eax
mov eax, dword [ebp - 0x138]
cmp eax, edi
je 0x10001a3d
lea edx, [ebp - 0x1c8]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x128], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov ecx, dword [ebp - 0x1c8]
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x180], ecx
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [ebp - 0x128]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x128]
cmp eax, edi
je 0x10001a2f
mov ecx, dword [eax]
lea edx, [ebp - 0x144]
push edx
push 0x10016db0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x10001a21
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
lea edx, [ebp - 0x190]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ecx, 1
cmp ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x17c], ecx
sbb esi, esi
neg esi
mov dword [ebp - 0x178], edi
cmp dword [ebx + 0x74], edi
je 0x10001285
cmp esi, edi
jne 0x10001285
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], 0x20000
mov dword [ebp - 0x174], 3
jmp 0x10001291
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x174], edi
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [ebp - 0x11c]
push ecx
push edi
lea ecx, [ebp - 0x190]
push ecx
push eax
call edx
test eax, eax
jl 0x10001a13
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
test esi, esi
je 0x10001368
mov edx, dword [ebp - 0x180]
push edx
mov edx, dword [ebp - 0x128]
push 0
push edx
mov edx, dword [ebp - 0x11c]
push 0
push edx
push eax
mov eax, dword [ecx + 0xe4]
call eax
cmp dword [ebx + 0x74], edi
je 0x100014f8
mov eax, dword [ebx + 0x98]
lea edx, [ebp - 0x140]
push edx
push 0
lea edx, [ebp - 0x190]
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], 0x20000
mov dword [ebp - 0x174], 3
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x1000137f
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp - 0x140]
push edx
push eax
mov eax, dword [ecx + 0xbc]
call eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x11c], eax
jmp 0x1000137f
mov edx, dword [ebp - 0x128]
push edx
mov edx, dword [ebp - 0x11c]
push edx
push eax
mov eax, dword [ecx + 0xbc]
call eax
cmp dword [ebx + 0x74], edi
je 0x100014f8
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
lea edx, [ebp - 0x1b4]
push edx
mov edx, dword [ebp - 0x11c]
push 0
push 1
push 0
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jl 0x10001a05
mov ecx, dword [ebp - 0x190]
fld dword [ebx + 0x80]
fild dword [ebp - 0x190]
test ecx, ecx
jge 0x100013ce
fadd dword [0x10016e20]
fmulp st(1)
sub esp, 8
fstp dword [ebp - 0x124]
fld dword [ebp - 0x124]
fstp qword [esp]
call fcn.10010200
fstp dword [ebp - 0x124]
fld dword [ebp - 0x124]
call fcn.10010590
fld dword [ebx + 0x84]
mov edx, dword [ebp - 0x18c]
fild dword [ebp - 0x18c]
mov esi, eax
test edx, edx
jge 0x10001416
fadd dword [0x10016e20]
fmulp st(1)
fstp dword [ebp - 0x124]
fld dword [ebp - 0x124]
fstp qword [esp]
call fcn.10010200
fstp dword [ebp - 0x124]
add esp, 8
fld dword [ebp - 0x124]
call fcn.10010590
mov ecx, eax
mov eax, dword [ebp - 0x180]
lea edx, [eax - 1]
cmp edx, 7
ja 0x10001457
mov edx, 0x10
jmp 0x10001473
lea edx, [eax - 9]
cmp edx, 0xd
ja 0x10001466
mov edx, 8
jmp 0x10001473
lea edx, [eax - 0x17]
cmp edx, 0x18
ja 0x100014d9
mov edx, 4
mov edi, dword [ebp - 0x1b0]
imul esi, edx
imul edi, ecx
add edi, dword [ebp - 0x1b4]
add esi, edi
mov ecx, esi
cmp edx, 4
je 0x1000161b
cmp edx, 8
je 0x100015d4
cmp edx, 0x10
je 0x100014a4
xor edi, edi
jmp 0x100014d9
cmp eax, 2
jne 0x100015bb
fld1
fcom dword [ecx]
fnstsw ax
test ah, 0x44
jp 0x100014d2
fldz
fcomp dword [ecx + 4]
fnstsw ax
test ah, 0x44
jp 0x100014d2
fcomp dword [ecx + 8]
fnstsw ax
test ah, 0x44
jp 0x100014d4
xor edi, edi
jmp 0x100014d9
fstp st(0)
mov edi, 1
mov eax, dword [ebp - 0x114]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
test edi, edi
je 0x10001a05
xor esi, esi
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x150], ebp
inc dword [ebx + 0x68]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x68]
push eax
add ecx, 0x100
push ecx
push str._ssnapshot_d.ce3dsnapshot
lea edx, [ebp - 0x110]
push 0x104
push edx
call fcn.1000615b
add esp, 0x14
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x118]
push ecx
push 4
lea edx, [ebp - 0x120]
mov esi, eax
push edx
push esi
mov dword [ebp - 0x120], 0xb
call edi
mov eax, dword [ebx]
mov dword [ebp - 0x134], 0
mov ecx, dword [eax + 0x474]
test ecx, ecx
je 0x100016a1
mov edx, dword [ebx]
mov eax, dword [edx + 0x464]
sub eax, 0
je 0x10001665
sub eax, 1
je 0x10001652
sub eax, 2
je 0x1000163f
push str..WTF
jmp 0x1000166a
cmp dword [ecx], 0xffffffff
jne 0x100014d4
cmp dword [ecx + 4], 0
jne 0x100014d4
cmp dword [ecx + 8], 0xffffffff
jmp 0x10001632
cmp eax, 0xa
jne 0x100015fa
mov eax, 0x3c00
cmp word [ecx], ax
jne 0x100014d4
cmp word [ecx + 2], 0
jne 0x100014d4
mov edx, eax
cmp word [ecx + 4], dx
jmp 0x10001632
mov eax, 0xffff
cmp word [ecx], ax
jne 0x100014d4
cmp word [ecx + 2], 0
jne 0x100014d4
mov edx, eax
cmp word [ecx + 4], dx
jmp 0x10001632
cmp byte [ecx], 0xff
jne 0x100014d4
cmp byte [ecx + 1], 0
jne 0x100014d4
cmp byte [ecx + 2], 0xff
jne 0x100014d4
xor edi, edi
jmp 0x100014d9
push str..PNG
push 0x104
lea ecx, [ebp - 0x110]
push ecx
jmp 0x10001676
push str..JPG
push 0x104
lea edx, [ebp - 0x110]
push edx
jmp 0x10001676
push str..BMP
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.10006179
mov edx, dword [ebx]
mov eax, dword [edx + 0x464]
mov edx, dword [ebp - 0x114]
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x11c]
push eax
push ecx
push edx
call sub.d3dx11_43.dll_D3DX11SaveTextureToFileA
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x464]
mov ecx, dword [ebp - 0x114]
push 0
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x11c]
push edx
push eax
push ecx
call sub.d3dx11_43.dll_D3DX11SaveTextureToMemory
push 0
test eax, eax
jl 0x10001748
mov edx, dword [ebx]
mov eax, dword [edx + 0x464]
lea ecx, [ebp - 0x118]
push ecx
push 4
lea edx, [ebp - 0x120]
push edx
push esi
mov dword [ebp - 0x120], eax
call edi
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
push 0
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x118]
push eax
push 4
lea ecx, [ebp - 0x120]
push ecx
push esi
call edi
mov eax, dword [ebp - 0x120]
push 0
lea edx, [ebp - 0x118]
push edx
push eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
push eax
push esi
call edi
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1000177a
lea eax, [ebp - 0x118]
push eax
push 4
lea ecx, [ebp - 0x120]
push ecx
push esi
mov dword [ebp - 0x120], 0
call edi
push 0
lea edx, [ebp - 0x118]
push edx
push 4
lea eax, [ebp - 0x120]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x118]
push ecx
push 8
lea edx, [ebp - 0x150]
push edx
push esi
call edi
mov ecx, dword [ebp - 0x150]
push 0x1c
lea eax, [ebp - 0x1e4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x10001803
mov edx, dword [ebp - 0x1e4]
sub edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x1d8]
add eax, edx
mov dword [ebp - 0x12c], eax
cmp eax, 0x2000
jb 0x100017d5
mov dword [ebp - 0x12c], 0x2000
push 0
lea ecx, [ebp - 0x118]
push ecx
push 4
lea edx, [ebp - 0x12c]
push edx
push esi
call edi
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x150]
push 0
lea eax, [ebp - 0x118]
push eax
push ecx
push edx
jmp 0x10001828
xor eax, eax
push eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x118]
push eax
push 4
lea ecx, [ebp - 0x12c]
push ecx
push esi
call edi
mov eax, dword [ebp - 0x164]
mov edx, dword [eax]
mov edx, dword [edx + 0x120]
lea ecx, [ebp - 0x130]
push ecx
push 1
push 0
push eax
mov dword [ebp - 0x130], 0
call edx
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x140], 1
test eax, eax
je 0x10001992
lea edx, [ebp - 0x1a8]
mov dword [ebp - 0x13c], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [ebx + 0x98]
lea edx, [ebp - 0x13c]
push edx
push 0
lea edx, [ebp - 0x1a8]
mov dword [ebp - 0x19c], 0x20000
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1a4], 3
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x1000197b
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x130]
push ecx
mov ecx, dword [edx + 0xbc]
push eax
mov eax, dword [ebp - 0x114]
push eax
call ecx
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, dword [ebp - 0x13c]
push 0
push 1
push 0
push ecx
push eax
call edx
test eax, eax
jl 0x1000196d
mov eax, dword [ebp - 0x1a8]
push 0
lea ecx, [ebp - 0x118]
push ecx
push 4
lea edx, [ebp - 0x160]
push edx
push esi
mov dword [ebp - 0x160], eax
call edi
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x1f0]
push 0
lea eax, [ebp - 0x118]
push eax
push ecx
push edx
push esi
call edi
mov eax, dword [ebp - 0x114]
mov edx, dword [ebp - 0x13c]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x140], 0
call eax
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x140], 0
je 0x100019b1
push 0
lea eax, [ebp - 0x118]
push eax
push 4
lea ecx, [ebp - 0x154]
push ecx
push esi
mov dword [ebp - 0x154], 0
call edi
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x100019fe
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100019c0
sub eax, edx
push 0
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x158], eax
push 4
lea eax, [ebp - 0x158]
push eax
push esi
call edi
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x15c]
push 0
lea ecx, [ebp - 0x118]
push ecx
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add ebx, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000600e
mov esp, ebp
pop ebp
ret 8