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

Disassembly:
sub esp, 0xe0
mov eax, dword [0x102cf440]
xor eax, esp
mov dword [esp + 0xdc], eax
push edi
mov edi, dword [esp + 0xe8]
mov dword [esp + 0xc], 0
mov ecx, dword [edi + 0x120]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x100a0003
push ebp
push 1
push ecx
call fcn.100870e0
mov ebp, eax
add esp, 8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1009fbb0
push eax
push dword [edi + 0x120]
call fcn.10043a40
add esp, 8
pop ebp
pop edi
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.101eafcd
add esp, 0xe0
ret
mov eax, dword [edi + 0x128]
push ebx
push 0
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1009ffd5
lea eax, [esp + 0x14]
push eax
push dword [edi + 0x12c]
call fcn.100658d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1009ffd5
push eax
push ebp
push eax
push dword [esp + 0x20]
push dword [edi + 0x12c]
call fcn.10065b70
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1009ffd5
mov eax, dword [edi + 0x128]
cmp dword [eax + 8], ebx
je 0x1009fc46
lea eax, [esp + 0x60]
push eax
push ebp
call fcn.100871e0
mov eax, dword [edi + 0x128]
lea ecx, [esp + 0x68]
push ecx
push dword [edi + 0x120]
mov eax, dword [eax + 8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1009ffd5
mov eax, dword [edi + 0x128]
cmp dword [eax + 0xc], 0
je 0x1009fc77
push ebp
call fcn.10087240
mov ecx, dword [edi + 0x128]
push eax
push dword [edi + 0x120]
mov eax, dword [ecx + 0xc]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1009ffd5
mov eax, dword [edi + 0x128]
push esi
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1009fcb3
push dword [edi + 0x120]
call eax
add esp, 4
test eax, eax
je 0x1009fcb3
push ebp
call fcn.10087230
push ebp
mov dword [esp + 0x18], eax
xor esi, esi
call fcn.10087240
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x1009fcd8
push ebp
call fcn.10087240
xor ecx, ecx
mov dword [esp + 0x18], 0
add esp, 4
test eax, eax
sete cl
xor edx, edx
test eax, eax
setne dl
mov dword [esp + 0x10], edx
mov esi, edx
test ecx, ecx
je 0x1009fd21
mov eax, dword [edi + 0x128]
push 1
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1009ffd4
push 1
push dword [edi + 0x120]
push eax
push dword [esp + 0x24]
push dword [edi + 0x12c]
call fcn.10066520
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1009ffd4
test esi, esi
je 0x1009fd7c
mov eax, dword [edi + 0x128]
push 2
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1009ffd4
lea eax, [esp + 0x64]
push eax
push dword [edi + 0x120]
call fcn.100434d0
add esp, 8
test eax, eax
jne 0x1009fd64
lea ebx, [eax + 0x64]
jmp 0x1009ffd4
lea eax, [esp + 0x64]
push eax
push edi
call fcn.1009f910
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1009ffd4
cmp dword [esp + 0x14], 0
je 0x1009fdee
mov eax, dword [edi + 0x128]
push 2
push dword [edi + 0x120]
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1009ffd4
push ebp
call fcn.10087220
push eax
mov dword [esp + 0x18], eax
call sym.project.dll_cairo_region_num_rectangles
add esp, 8
mov dword [esp + 0x1c], eax
xor esi, esi
test eax, eax
jle 0x1009fdee
lea eax, [esp + 0x64]
push eax
push esi
push dword [esp + 0x18]
call sym.project.dll_cairo_region_get_rectangle
lea eax, [esp + 0x70]
push eax
push edi
call fcn.1009f910
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1009ffd4
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x1009fdc0
mov eax, dword [edi + 0x128]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1009ffd4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
push dword [edi + 0x120]
call eax
add esp, 0xc
test eax, eax
je 0x1009ffd4
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x64]
push eax
push dword [edi + 0x120]
call fcn.100434d0
mov ecx, dword [esp + 0x18]
movd xmm0, dword [esp + 0x74]
cvtdq2pd xmm0, xmm0
mov eax, dword [esp + 0x24]
push eax
push ecx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
push dword [edi + 0x124]
divsd xmm1, xmm0
movd xmm0, dword [esp + 0x84]
movsd qword [esp + 0x44], xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esp + 0x3c], xmm1
call fcn.10046690
mov dword [esp + 0x28], eax
lea eax, [esp + 0x4c]
push eax
push edi
call sym.project.dll_cairo_surface_get_font_options
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x34]
call fcn.10043a90
movsd xmm0, qword [esp + 0x4c]
add esp, 0x14
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
push dword [esp + 0x24]
call sym.project.dll_cairo_surface_set_device_scale
mov eax, dword [esp + 0x7c]
add esp, 4
neg eax
movd xmm0, eax
mov eax, dword [esp + 0x74]
cvtdq2pd xmm0, xmm0
neg eax
mulsd xmm0, qword [esp + 0x38]
movsd qword [esp + 8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
push dword [esp + 0x24]
call sym.project.dll_cairo_surface_set_device_offset
push dword [esp + 0x28]
push dword [edi + 0x12c]
call fcn.10065b20
add esp, 0x1c
test eax, eax
jne 0x1009ffb6
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x14]
push 1
call sym.project.dll_cairo_image_surface_create
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
cmp dword [esi + 0x14], 0
jne 0x1009ffb6
push 0
push 0x1022a8d8
push 1
push esi
call fcn.10043940
add esp, 0x10
test eax, eax
jne 0x1009ffb6
push dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
call fcn.1004d810
push 0
lea eax, [esp + 0x80]
mov dword [esp + 0xa4], 3
push eax
push 2
push esi
call fcn.10043940
mov esi, eax
lea eax, [esp + 0x8c]
push eax
call fcn.1004ce60
add esp, 0x1c
test esi, esi
mov esi, dword [esp + 0x10]
jne 0x1009ffb6
mov eax, dword [edi + 0x128]
push esi
push dword [edi + 0x120]
mov eax, dword [eax + 0x18]
call eax
add esp, 8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1009ffc7
push eax
call sym.project.dll_cairo_surface_destroy
add esp, 4
test esi, esi
je 0x1009ffd4
push esi
call sym.project.dll_cairo_surface_destroy
add esp, 4
pop esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1009ffec
push eax
push dword [edi + 0x12c]
call fcn.10065a90
add esp, 8
push ebp
call sym.project.dll_cairo_surface_destroy
push ebx
push dword [edi + 0x120]
call fcn.10043a40
add esp, 0xc
pop ebx
pop ebp
mov ecx, dword [esp + 0xe0]
pop edi
xor ecx, esp
call fcn.101eafcd
add esp, 0xe0
ret