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

Disassembly:
sub esp, 0x88
xor eax, eax
mov dword [esp + 0x70], 0
xor ecx, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], ecx
xorps xmm0, xmm0
mov ecx, dword [esp + 0x94]
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx]
mov eax, ecx
neg eax
test ecx, ecx
push ebp
mov ebp, dword [esp + 0x90]
cmovns eax, ecx
movzx eax, ax
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
mov edi, dword [ebp + 0x1c]
push eax
push 0x102607ac
push ebp
mov dword [esp + 0x28], edi
movups xmmword [esp + 0x8c], xmm0
call fcn.100daf10
add esp, 0xc
mov dword [esp + 8], eax
test eax, eax
jne 0x1012d270
cmp dword [esp + 0x34], 0x774f4632
push esi
je 0x1012d26a
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [ebp + 4]
jne 0x1012d26a
mov ax, word [esp + 0x40]
test ax, ax
je 0x1012d26a
movzx edi, ax
lea eax, [edi + edi*4]
lea eax, [eax*4 + 0x30]
cmp eax, ecx
jae 0x1012d26a
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
test esi, esi
jne 0x1012d279
test edx, edx
jne 0x1012d26a
cmp dword [esp + 0x54], edx
je 0x1012d284
mov eax, 8
pop esi
pop edi
pop ebp
add esp, 0x88
ret
test edx, edx
je 0x1012d284
cmp dword [esp + 0x54], 0
je 0x1012d26a
cmp esi, ecx
jae 0x1012d26a
mov eax, ecx
sub eax, esi
cmp eax, edx
jb 0x1012d26a
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
test eax, eax
jne 0x1012d2a0
test edx, edx
jne 0x1012d26a
cmp eax, ecx
jae 0x1012d26a
sub ecx, eax
cmp ecx, edx
jb 0x1012d26a
push ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x78], 0
push eax
push 0
push edi
mov edi, dword [esp + 0x30]
push 0
push 0x20
push edi
call fcn.100dcfa0
add esp, 0x18
mov ebx, eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x7c], ebx
jne 0x1012d610
lea eax, [esp + 0x10]
push eax
movzx eax, word [esp + 0x48]
push 0
push eax
push 0
push 4
push edi
call fcn.100dcfa0
add esp, 0x18
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
mov cx, word [esp + 0x44]
xor eax, eax
mov dword [esp + 0x1c], 0
cmp ax, cx
jae 0x1012d456
lea esi, [ebx + 4]
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.100daea0
add esp, 8
mov byte [esi - 4], al
cmp dword [esp + 0x10], 0
jne 0x1012d610
and al, 0x3f
cmp al, 0x3f
jne 0x1012d360
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.100db150
add esp, 8
mov dword [esi], eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
jmp 0x1012d37c
cmp al, 0x3e
ja 0x1012d602
movzx eax, al
mov eax, dword [eax*4 + str.pamcdaehaehhxtmhpxameman2_SOtsop_tvcmgpffylgacolperp_FFCGROVTDBECLBEpsagxmdhnrekHSTLTLCPXMDVaehvxtmvESABFEDGSOPGBUSGCSBEFTSJHTAMTDBCCLBCRLOCLAPC_GVSxibstncaravatadbcolbnlsbravccsdftaefxtmfravfravgytshtsujracltromxromdbpoporpkartfpaZfliStalGcolGtaeFlliS]
mov dword [esi], eax
test eax, eax
je 0x1012d608
mov cl, byte [esi - 4]
xor edi, edi
shr cl, 6
cmp eax, 0x676c7966
je 0x1012d39d
cmp eax, 0x6c6f6361
je 0x1012d39d
test cl, cl
je 0x1012d3a7
mov edi, 0x100
jmp 0x1012d3a7
test cl, cl
mov eax, 0x100
cmove edi, eax
lea ebp, [esi + 4]
movzx eax, cl
push ebp
push dword [esp + 0xa0]
or edi, eax
call fcn.101269e0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1012d610
mov eax, dword [ebp]
lea ebx, [esi + 8]
mov dword [ebx], eax
test edi, 0x100
je 0x1012d407
push ebx
push dword [esp + 0xa0]
call fcn.101269e0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1012d610
cmp dword [esi], 0x6c6f6361
jne 0x1012d407
cmp dword [ebx], eax
jne 0x1012d608
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
lea ecx, [eax + edx]
cmp ecx, edx
jb 0x1012d608
mov ebp, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
lea eax, [esi - 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], edi
add esi, 0x20
mov dword [ecx + ebp*4], eax
inc ebp
mov cx, word [esp + 0x44]
movzx eax, cx
mov dword [esp + 0x1c], ebp
cmp ebp, eax
mov ebp, dword [esp + 0x9c]
jl 0x1012d321
mov edi, dword [esp + 0x24]
movzx eax, cx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax*4 - 4]
mov eax, dword [edx + 0x14]
add eax, dword [edx + 0x18]
mov dword [esp + 0x64], eax
cmp eax, dword [edx + 0x14]
jb 0x1012d608
cmp dword [esp + 0x3c], 0x74746366
mov eax, 1
mov word [esp + 0x70], ax
mov dword [esp + 0x6c], 0
jne 0x1012d727
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.100db150
add esp, 8
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
cmp eax, 0x10000
je 0x1012d4c3
cmp eax, 0x20000
jne 0x1012d608
lea eax, [esp + 0x70]
push eax
push ebp
call fcn.10126910
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1012d610
mov ax, word [esp + 0x70]
test ax, ax
je 0x1012d608
lea ecx, [esp + 0x10]
movzx eax, ax
push ecx
push 0
push eax
push 0
push 0xc
push edi
call fcn.100dcfa0
add esp, 0x18
mov dword [esp + 0x78], eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
xor ecx, ecx
mov dword [esp + 0x20], 0
cmp cx, word [esp + 0x70]
jae 0x1012d72f
mov dword [esp + 0x1c], ecx
nop dword [eax + eax]
mov esi, dword [esp + 0x9c]
lea ebx, [ecx + eax]
lea ebp, [ebx + 4]
mov dword [esp + 0x34], ebx
push ebp
push esi
call fcn.10126910
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1012d610
lea eax, [esp + 0x10]
push eax
push esi
call fcn.100db150
add esp, 8
mov dword [ebx], eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
lea eax, [esp + 0x10]
push eax
movzx eax, word [ebp]
push 0
push eax
push 0
push 2
push edi
call fcn.100dcfa0
add esp, 0x18
mov dword [ebx + 8], eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
xor eax, eax
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp ax, word [ebp]
jae 0x1012d6fd
nop word [eax + eax]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0xa0]
call fcn.10126910
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1012d610
mov cx, word [esp + 0x14]
cmp cx, word [esp + 0x44]
jae 0x1012d608
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
mov word [eax + edi*2], cx
mov eax, dword [esp + 0x18]
movzx ecx, cx
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
cmp eax, 0x6c6f6361
jne 0x1012d6cc
mov esi, ecx
jmp 0x1012d6d5
mov dword [esi], 0
mov dword [esp + 0x10], 8
xor ebp, ebp
push dword [esp + 0x7c]
mov ebx, dword [esp + 0x28]
push ebx
call fcn.100dce30
push dword [esp + 0x20]
push ebx
call fcn.100dce30
push dword [esp + 0x3c]
push ebx
call fcn.100dce30
push dword [esp + 0xa0]
push ebx
call fcn.100dce30
mov eax, dword [esp + 0x98]
add esp, 0x20
test eax, eax
je 0x1012d694
xor ecx, ecx
xor edi, edi
cmp cx, word [esp + 0x70]
jae 0x1012d682
lea esi, [eax + 8]
nop dword [eax]
push dword [esi]
push ebx
call fcn.100dce30
mov dword [esi], 0
lea esi, [esi + 0xc]
movzx eax, word [esp + 0x78]
inc edi
add esp, 8
cmp edi, eax
jl 0x1012d660
mov eax, dword [esp + 0x78]
push eax
push ebx
call fcn.100dce30
add esp, 8
mov dword [esp + 0x78], 0
cmp dword [esp + 0x10], 0
je 0x1012d6bd
push ebp
push ebx
call fcn.100dce30
mov ebp, dword [esp + 0x38]
add esp, 8
test ebp, ebp
je 0x1012d6bd
push ebp
call fcn.100da980
push ebp
push ebx
call fcn.100dce30
add esp, 0xc
mov eax, dword [esp + 0x10]
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x88
ret
cmp eax, 0x676c7966
jne 0x1012d6d5
mov ebx, ecx
movzx eax, word [ebp]
inc edi
cmp edi, eax
jb 0x1012d5b0
test ebx, ebx
jne 0x1012d6ea
test esi, esi
je 0x1012d6fd
cmp ebx, esi
ja 0x1012d608
sub esi, ebx
cmp esi, 1
jne 0x1012d608
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc edi
movzx eax, word [esp + 0x70]
add ecx, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ecx
cmp edi, eax
jge 0x1012d72f
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x24]
jmp 0x1012d530
mov dword [esp + 0x78], 0
mov ebp, dword [esp + 0x9c]
push ebp
call sym.project.dll_cairo_surface_get_type
mov ecx, dword [esp + 0x50]
add esp, 4
mov edx, dword [esp + 0x40]
add ecx, 3
add ecx, eax
mov dword [esp + 0x68], eax
and ecx, 0xfffffffc
cmp ecx, edx
ja 0x1012d608
mov esi, dword [esp + 0x50]
test esi, esi
je 0x1012d777
cmp ecx, esi
jne 0x1012d608
mov ecx, dword [esp + 0x54]
add ecx, 3
add ecx, esi
and ecx, 0xfffffffc
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x1012d793
cmp ecx, esi
jne 0x1012d608
mov ecx, dword [esp + 0x60]
add ecx, 3
add ecx, esi
and ecx, 0xfffffffc
lea eax, [edx + 3]
and eax, 0xfffffffc
cmp ecx, eax
jne 0x1012d608
mov eax, dword [esp + 0xa8]
movzx ecx, word [esp + 0x70]
mov ebx, dword [esp + 0x28]
mov dword [eax], ecx
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
test eax, eax
jns 0x1012d7c5
test ebx, ebx
je 0x1012d7c5
dec ebx
cmp ebx, ecx
jl 0x1012d7dc
test eax, eax
js 0x1012d7da
mov dword [esp + 0x10], 6
jmp 0x1012d610
xor ebx, ebx
cmp dword [esp + 0x6c], 0
je 0x1012d8c5
mov eax, dword [esp + 0x78]
lea ecx, [ebx + ebx*2]
mov edi, dword [esp + 0x24]
lea esi, [eax + ecx*4]
lea eax, [esp + 0x10]
push eax
movzx eax, word [esi + 4]
push 0
push eax
push 0
push 4
push edi
call fcn.100dcea0
add esp, 0x18
mov ebx, eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
movzx ecx, word [esi + 4]
xor edx, edx
mov dword [esp + 0x34], edx
mov eax, ecx
cmp dx, cx
jae 0x1012d850
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 8]
movzx eax, word [eax + edx*2]
mov eax, dword [ebp + eax*4]
mov dword [ebx + edx*4], eax
inc edx
movzx ecx, word [esi + 4]
cmp edx, ecx
jl 0x1012d830
mov ebp, dword [esp + 0x9c]
mov eax, ecx
lea ecx, [esp + 0x10]
movzx eax, ax
push ecx
push dword [esp + 0x1c]
push eax
movzx eax, word [esp + 0x50]
push eax
push 4
push edi
call fcn.100dcea0
add esp, 0x18
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
jne 0x1012d610
xor ecx, ecx
xor edx, edx
cmp cx, word [esi + 4]
jae 0x1012d8a2
mov edi, ebx
mov ecx, eax
sub edi, eax
nop dword [eax]
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc edx
movzx eax, word [esi + 4]
cmp edx, eax
jl 0x1012d890
push ebx
mov ebx, dword [esp + 0x28]
push ebx
call fcn.100dce30
mov eax, dword [esi]
add esp, 8
mov edx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov ax, word [esi + 4]
mov word [esp + 0x44], ax
jmp 0x1012d8ce
mov ax, word [esp + 0x44]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
movzx esi, ax
shl esi, 4
add esi, 0xc
mov dword [esp + 0x20], esi
cmp ecx, esi
jbe 0x1012d905
mov eax, ecx
shr eax, 6
cmp eax, edx
jbe 0x1012d8f5
mov esi, edx
shl esi, 6
mov ecx, esi
jmp 0x1012d8f7
mov esi, ecx
mov eax, 0x4000000
cmp ecx, eax
cmovae esi, eax
mov dword [esp + 0x20], esi
lea eax, [esp + 0x10]
push eax
push esi
push ebx
call fcn.100dce50
mov edi, eax
add esp, 0xc
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
jne 0x1012da3e
lea eax, [esp + 0x10]
push eax
push 0x28
push ebx
call fcn.100dcdd0
add esp, 0xc
mov dword [esp + 0x30], eax
cmp dword [esp + 0x10], 0
jne 0x1012da3e
mov ecx, dword [esp + 0x3c]
lea edx, [edi + 1]
shr ecx, 0x18
mov byte [edi], cl
mov ecx, dword [esp + 0x3c]
shr ecx, 0x10
mov byte [edx], cl
mov eax, dword [esp + 0x3c]
shr eax, 8
mov byte [edx + 1], al
mov al, byte [esp + 0x3c]
mov byte [edx + 2], al
mov di, word [esp + 0x44]
test di, di
je 0x1012d9dd
movzx ebx, di
xor ecx, ecx
mov eax, ebx
test eax, eax
je 0x1012d988
inc ecx
shr eax, 1
jne 0x1012d983
dec ecx
shl ebx, 4
mov eax, 1
shl eax, cl
shl eax, 4
sub ebx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
shr eax, 8
mov byte [edx + 3], al
mov al, byte [esp + 0x44]
mov byte [edx + 4], al
mov eax, dword [esp + 0x28]
shr eax, 8
mov byte [edx + 5], al
mov eax, dword [esp + 0x28]
mov byte [edx + 6], al
mov eax, ecx
shr eax, 8
mov byte [edx + 7], al
mov eax, ebx
shr eax, 8
mov byte [edx + 0xa], bl
mov ebx, dword [esp + 0x24]
mov byte [edx + 8], cl
mov byte [edx + 9], al
mov di, word [esp + 0x44]
mov eax, dword [esp + 0x14]
push 0xc
push eax
call fcn.10126c50
push 0x10126c30
mov dword [esp + 0x8c], eax
push 4
movzx eax, di
push eax
push dword [esp + 0x2c]
call fcn.10209230
movzx edi, word [esp + 0x5c]
mov edx, 1
add esp, 0x18
cmp edi, edx
jbe 0x1012da2d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edx*4 - 4]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
je 0x1012da36
inc edx
cmp edx, edi
jl 0x1012da15
mov eax, dword [esp + 0x64]
cmp eax, 1
jae 0x1012da47
mov dword [esp + 0x10], 8
mov ebp, dword [esp + 0x14]
jmp 0x1012d612
cmp eax, esi
jbe 0x1012da5c
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], 8
jmp 0x1012d612
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
call fcn.100dce50
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x10], 0
jne 0x1012da3e
push dword [esp + 0x4c]
push ebp
call fcn.100da9a0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1012da3e
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x28]
mov esi, dword [esp + 0x64]
push edi
push eax
push dword [ebp + 0x20]
mov dword [esp + 0x34], esi
push dword [esp + 0x58]
call fcn.10222bc0
add esp, 0x10
cmp eax, 1
jne 0x1012dabb
cmp dword [esp + 0x28], esi
jne 0x1012dabb
xor eax, eax
jmp 0x1012dac0
mov eax, 8
push ebp
mov dword [esp + 0x14], eax
call fcn.100daa70
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x1012da3e
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x7c]
push edi
call fcn.101286a0
add esp, 0x20
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1012dba0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jae 0x1012db46
lea edx, [esp + 0x10]
push edx
push dword [esp + 0x20]
push eax
push ecx
push 1
push ebx
call fcn.100dcfa0
add esp, 0x18
mov edi, eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
jne 0x1012da3e
mov eax, dword [esp + 0x74]
jmp 0x1012db4e
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x30]
push eax
push edi
push ebx
call fcn.100dad70
mov esi, dword [esp + 0xac]
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], 0x1012a350
mov eax, dword [esi + 8]
shr eax, 0xa
and eax, 1
push eax
push dword [esi + 0x68]
call fcn.100daae0
mov eax, dword [esp + 0xb8]
add esp, 0x14
and dword [esi + 8], 0xfffffbff
mov ebp, dword [esp + 0x14]
mov dword [esi + 0x68], ebx
sar dword [eax], 0x1f
jmp 0x1012d612
mov ebp, dword [esp + 0x1c]
jmp 0x1012d612