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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x659c28
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
add esi, 8
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
je 0x529261
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
jne 0x529266
call fcn.0062492b
mov eax, dword [esi + 4]
mov eax, dword [eax]
push 0xffffffffffffffff
add eax, 8
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x1ec], ebx
mov byte [esp + 0x1dc], bl
call fcn.00401d10
mov dword [esp + 0x230], ebx
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
mov byte [esp + 0x13], 0
mov byte [esp + 0x1f], 0
jae 0x5292c1
lea eax, [esp + 0x1d0]
push str.Define
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52954c
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x52bcff
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 3
jne 0x52bcff
cmp ecx, ebx
je 0x529304
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x529309
call fcn.0062492b
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
cmp byte [eax + 4], 0
jne 0x529528
mov ecx, edx
cmp ecx, ebx
je 0x52932c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x529331
call fcn.0062492b
mov eax, dword [esi + 4]
mov ebx, dword [eax + 4]
add eax, 4
add ebx, 8
lea edi, [esp + 0x1e8]
call fcn.004e6590
mov bl, 1
mov eax, edi
mov byte [esp + 0x230], bl
call fcn.004effe0
test al, al
jne 0x529546
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
add edi, 0x60
push ecx
lea ebx, [esp + 0x1ec]
mov dword [esp + 0x3c], edi
call fcn.004f50c0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov edx, dword [edi + 4]
mov dword [esp + 0x40], edx
je 0x529390
cmp ebx, edi
je 0x529395
call fcn.0062492b
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x40]
je 0x5293ce
lea esi, [esp + 0x2c]
call fcn.004f3620
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x5293b9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov edx, dword [esp + 0x38]
push edi
push ebx
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.004fbf70
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
je 0x529472
push 0x18
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 2
je 0x529408
push eax
call fcn.004ef9c0
mov ebx, eax
jmp 0x52940a
xor ebx, ebx
mov byte [esp + 0x230], 1
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [eax]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004f0240
test al, al
jne 0x52944b
test ebx, ebx
je 0x52943f
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x1e8]
jmp 0x52bdd7
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1ec]
push edx
lea esi, [esp + 0x8c]
mov dword [esp + 0x28], ebx
call fcn.0053af40
mov byte [esp + 0x230], 3
jmp 0x5294ee
mov esi, dword [esp + 0x18]
call fcn.004f52d0
mov esi, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 8]
push eax
call edx
test eax, eax
je 0x5294c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1ec]
push edx
lea esi, [esp + 0x8c]
mov dword [esp + 0x28], eax
call fcn.0053af40
mov byte [esp + 0x230], 4
jmp 0x5294ee
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1ec]
push edx
lea esi, [esp + 0x8c]
mov dword [esp + 0x28], eax
call fcn.0053af40
mov byte [esp + 0x230], 5
push eax
mov eax, dword [esp + 0x3c]
push eax
lea ebx, [esp + 0x34]
call fcn.0053ab20
lea esi, [esp + 0x84]
call fcn.0054ea00
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.00401c70
cmp byte [esp + 0x13], 0
je 0x52bd6b
push str.Invalid_Paramater_Type
lea ecx, [esp + 0x208]
call fcn.00402130
mov byte [esp + 0x230], 0x44
jmp 0x52bdbd
mov byte [esp + 0x13], bl
jmp 0x529509
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x529564
lea eax, [esp + 0x1d0]
push str.CreateHorzSpanRectList
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x529ad8
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x52bcff
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 4
jne 0x52bcff
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
cmp ecx, ebx
mov byte [esp + 0x230], 7
je 0x5295d0
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x5295d5
call fcn.0062492b
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
cmp byte [edx + 4], 0
jne 0x529a8f
mov edi, 2
call fcn.004f52d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1b0]
push ecx
push edx
push eax
call fcn.004f0e60
test al, al
je 0x529a8f
mov ecx, dword [esp + 0x1b4]
cmp ecx, ebx
je 0x529a8f
mov eax, dword [esp + 0x1b8]
sub eax, ecx
sar eax, 2
cmp eax, 4
jne 0x529a8f
mov esi, dword [esp + 0x18]
lea edi, [eax - 1]
call fcn.004f52d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.004f0e60
test al, al
je 0x529a8f
mov edi, 1
call fcn.004f52d0
mov ebx, dword [eax]
add ebx, 8
lea edi, [esp + 0x204]
call fcn.004e6590
mov bl, 8
mov byte [esp + 0x230], bl
xor esi, esi
push 0x18
mov dword [esp + 0x48], esi
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov byte [esp + 0x230], 9
je 0x5296a6
push eax
call fcn.004ef9c0
mov dword [esp + 0x28], eax
jmp 0x5296aa
mov dword [esp + 0x28], esi
mov byte [esp + 0x230], bl
mov dword [esp + 0x38], esi
jmp 0x5296c0
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
je 0x5299db
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x38], eax
jae 0x5299db
push 0x18
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov byte [esp + 0x230], 0xa
je 0x529705
push eax
call fcn.004ef9c0
mov dword [esp + 0x18], eax
jmp 0x529709
mov dword [esp + 0x18], esi
mov byte [esp + 0x230], bl
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
add esi, 8
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], ecx
call fcn.004f52f0
mov dword [esp + 0x200], 0xf
mov dword [esp + 0x1fc], 0
mov byte [esp + 0x1ec], 0
mov bl, 0xb
xor edi, edi
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], bl
call fcn.00442810
mov edx, dword [eax]
add edx, dword [esp + 0x44]
lea eax, [esp + 0x68]
push edx
push 0x66f98c
push eax
call fcn.004e7a20
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0xc
call fcn.00401d10
lea ecx, [esp + 0x68]
mov byte [esp + 0x230], bl
call fcn.00401c70
push 0x28
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0xd
je 0x5297c8
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.004ef7b0
jmp 0x5297ca
xor eax, eax
mov byte [esp + 0x230], bl
mov esi, dword [esp + 0x18]
add esi, 8
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
call fcn.004f52f0
mov edi, 1
lea esi, [esp + 0x1b0]
call fcn.00442810
mov edx, dword [eax]
push edx
lea eax, [esp + 0x6c]
push 0x66f98c
push eax
call fcn.004e7a20
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0xe
call fcn.00401d10
mov bl, 0xb
lea ecx, [esp + 0x68]
mov byte [esp + 0x230], bl
call fcn.00401c70
push 0x28
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0xf
je 0x529864
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.004ef7b0
jmp 0x529866
xor eax, eax
mov byte [esp + 0x230], bl
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.004f52f0
mov edi, dword [esp + 0x38]
lea esi, [esp + 0x48]
call fcn.00442810
mov edx, dword [eax]
push edx
lea eax, [esp + 0x6c]
push 0x66f98c
push eax
call fcn.004e7a20
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0x10
call fcn.00401d10
mov bl, 0xb
lea ecx, [esp + 0x68]
mov byte [esp + 0x230], bl
call fcn.00401c70
push 0x28
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0x11
je 0x5298f5
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.004ef7b0
jmp 0x5298f7
xor eax, eax
mov byte [esp + 0x230], bl
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.004f52f0
mov edi, 3
lea esi, [esp + 0x1b0]
call fcn.00442810
mov edx, dword [eax]
push edx
lea eax, [esp + 0x6c]
push 0x66f98c
push eax
call fcn.004e7a20
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0x12
call fcn.00401d10
mov bl, 0xb
lea ecx, [esp + 0x68]
mov byte [esp + 0x230], bl
call fcn.00401c70
push 0x28
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0x13
je 0x52998a
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.004ef7b0
jmp 0x52998c
xor eax, eax
mov byte [esp + 0x230], bl
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.004f52f0
mov edi, dword [esp + 0x38]
lea esi, [esp + 0x48]
call fcn.00442810
mov edx, dword [eax]
add dword [esp + 0x44], edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 8
call fcn.00401c70
add edi, 1
mov dword [esp + 0x38], edi
mov bl, 8
xor esi, esi
jmp 0x5296c0
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x2c]
add edi, 0x60
push eax
lea ebx, [esp + 0x208]
mov dword [esp + 0x3c], edi
call fcn.004f50c0
mov ecx, dword [edi + 4]
mov dword [esp + 0x3c], edi
lea esi, [esp + 0x3c]
lea edi, [esp + 0x2c]
mov dword [esp + 0x40], ecx
call fcn.004f5290
test al, al
je 0x529a44
mov esi, edi
call fcn.004f3620
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x529a2b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004fbf70
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x208]
push ecx
lea esi, [esp + 0x8c]
mov dword [esp + 0x28], edx
call fcn.0053af40
mov byte [esp + 0x230], 0x14
mov edx, dword [esp + 0x38]
push eax
push edx
lea ebx, [esp + 0x34]
call fcn.0053ab20
call fcn.0054ea00
lea ecx, [esp + 0x204]
call fcn.00401c70
jmp 0x529a94
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, esi
je 0x529aa7
push eax
call fcn.0062493b
add esp, 4
mov byte [esp + 0x230], 0
mov eax, dword [esp + 0x1b4]
cmp eax, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x52951d
push eax
call fcn.0062493b
add esp, 4
jmp 0x52951d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x529af0
lea eax, [esp + 0x1d0]
push str.SetDefaultPointSize
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x529b87
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x52bcff
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 2
jne 0x52bcff
lea edi, [eax - 1]
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x529528
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x78], eax
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x529b9f
lea eax, [esp + 0x1d0]
push str.SetCharMap
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x529d28
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x52bcff
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 3
jne 0x52bcff
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea edi, [eax - 2]
mov byte [esp + 0x230], 0x16
call fcn.004f52d0
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x529d01
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x4c]
call fcn.004f0b00
test al, al
je 0x529d01
lea ecx, [esp + 0x1b0]
call fcn.00441b40
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.00441b40
cmp esi, eax
jne 0x529cfa
xor edi, edi
cmp esi, ebx
jbe 0x529d06
lea ebx, [edi + 1]
nop
lea esi, [esp + 0x1b0]
call fcn.00441b70
cmp dword [eax + 0x14], ebx
jne 0x529cdd
lea esi, [esp + 0x48]
call fcn.00441b70
cmp dword [eax + 0x14], ebx
jne 0x529cdd
push 0
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
push 0
lea esi, [esp + 0x1b4]
mov ebx, eax
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
mov cl, byte [eax]
mov dl, byte [ebx]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov byte [esp + 0x18], cl
push eax
lea ecx, [esp + 0x30]
push ecx
add ebx, 0x7c
mov byte [esp + 0x21], dl
call fcn.0053a960
mov ebx, 1
jmp 0x529ce2
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, ebx
call fcn.00441b40
cmp edi, eax
jb 0x529c70
jmp 0x529d06
mov byte [esp + 0x1f], 1
jmp 0x529d06
mov byte [esp + 0x13], 1
lea esi, [esp + 0x48]
call fcn.00441b00
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x529d40
lea eax, [esp + 0x1d0]
push str.CreateLayer
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x529e98
mov eax, esi
call fcn.004f52b0
cmp eax, 2
jne 0x52bcff
lea edi, [eax - 1]
call fcn.004f52d0
mov edx, dword [eax]
cmp byte [edx + 4], 0
jne 0x529528
mov esi, dword [esp + 0x18]
call fcn.004f52d0
mov ebx, dword [eax]
add ebx, 8
lea edi, [esp + 0x204]
call fcn.004e6590
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0x238], 0x17
call fcn.00528520
lea edi, [esi + 0x88]
mov ebx, edi
mov byte [esp + 0x230], 0x18
call fcn.0053aaf0
lea ecx, [esp + 0xd8]
push ecx
mov byte [esp + 0x234], 0x17
call fcn.0052be10
call fcn.0053aad0
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x20c]
lea ecx, [eax + 0x10]
push edx
mov dword [esp + 0x2c], eax
call fcn.00401d10
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x208]
push ecx
lea esi, [esp + 0x8c]
call fcn.0053af40
mov edi, dword [esp + 0x14]
push eax
lea edx, [edi + 0x94]
push edx
lea ebx, [esp + 0x34]
mov byte [esp + 0x238], 0x19
call fcn.0053ab20
cmp byte [eax + 8], 0
mov byte [esp + 0x230], 0x17
sete bl
call fcn.0054ea00
test bl, bl
je 0x529e79
push str.Layer_Already_Exists
lea ecx, [esp + 0x1ec]
call fcn.00402130
mov byte [esp + 0x230], 0x1a
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, edi
call edx
lea ecx, [esp + 0x1e8]
call fcn.00401c70
lea ecx, [esp + 0x204]
call fcn.00401c70
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x529eb0
lea eax, [esp + 0x1d0]
push str.CreateLayerFrom
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a01f
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bcff
lea edi, [eax - 2]
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov edi, 1
call fcn.004f52d0
mov ebx, dword [eax]
add ebx, 8
lea edi, [esp + 0x1e8]
call fcn.004e6590
lea eax, [esp + 0xd8]
mov byte [esp + 0x230], 0x1b
mov edi, dword [esp + 0x20]
push eax
call fcn.005286c0
mov edi, dword [esp + 0x14]
add edi, 0x88
mov ebx, edi
mov byte [esp + 0x230], 0x1c
call fcn.0053aaf0
lea ecx, [esp + 0xd8]
push ecx
mov byte [esp + 0x234], 0x1b
call fcn.0052be10
call fcn.0053aad0
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x1ec]
push eax
lea esi, [esp + 0x8c]
call fcn.0053af40
mov edi, dword [esp + 0x14]
push eax
lea ecx, [edi + 0x94]
push ecx
lea ebx, [esp + 0x34]
mov byte [esp + 0x238], 0x1d
call fcn.0053ab20
cmp byte [eax + 8], 0
mov byte [esp + 0x230], 0x1b
sete bl
call fcn.0054ea00
test bl, bl
je 0x52a000
push str.Layer_Already_Exists
lea ecx, [esp + 0x208]
call fcn.00402130
mov byte [esp + 0x230], 0x1e
mov edx, dword [edi]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x204]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 0x204]
call fcn.00401c70
lea ecx, [esp + 0x1e8]
call fcn.00401c70
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x52a037
lea eax, [esp + 0x1d0]
push str.LayerRequireTags
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a175
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bcff
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
lea edi, [eax - 2]
mov byte [esp + 0x230], 0x1f
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x52a157
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x52a157
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], ebx
call fcn.00441b40
test eax, eax
jbe 0x52a15c
mov ecx, dword [esp + 0x20]
add ecx, 0x2c
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x1b0]
call fcn.00441b70
mov ebx, eax
lea edi, [esp + 0x68]
call fcn.004e6590
mov byte [esp + 0x230], 0x20
mov esi, dword [esp + 0x20]
push eax
call fcn.00441bd0
mov ecx, edi
mov byte [esp + 0x230], 0x1f
call fcn.00401c70
mov esi, dword [esp + 0x28]
add esi, 1
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], esi
call fcn.00441b40
cmp esi, eax
jb 0x52a0e7
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x52a18d
lea eax, [esp + 0x1d0]
push str.LayerExcludeTags
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a2ad
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bcff
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
lea edi, [eax - 2]
mov byte [esp + 0x230], 0x21
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x52a157
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x52a157
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], ebx
call fcn.00441b40
test eax, eax
jbe 0x52a15c
mov edx, dword [esp + 0x20]
add edx, 0x3c
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x1b0]
call fcn.00441b70
mov ebx, eax
lea edi, [esp + 0x68]
call fcn.004e6590
mov byte [esp + 0x230], 0x22
mov esi, dword [esp + 0x20]
push eax
call fcn.00441bd0
mov ecx, edi
mov byte [esp + 0x230], 0x21
call fcn.00401c70
mov esi, dword [esp + 0x28]
add esi, 1
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], esi
call fcn.00441b40
cmp esi, eax
jb 0x52a23d
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x52a2c5
lea eax, [esp + 0x1d0]
push str.LayerPointRange
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a3cf
mov eax, esi
call fcn.004f52b0
cmp eax, 4
jne 0x52bcff
lea edi, [eax - 3]
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov ebx, dword [esp + 0x18]
mov edi, 2
mov esi, ebx
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x529528
mov edi, 3
call fcn.004f52d0
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x529528
mov edi, 2
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
lea esi, [esp + 0x44]
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov edi, 3
mov esi, ebx
call fcn.004f52d0
mov eax, dword [eax]
sub esp, 0x1c
add eax, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00401c40
lea esi, [esp + 0x60]
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
mov dword [eax + 0xb0], ecx
lea ecx, [esp + 0x1cc]
mov dword [eax + 0xb4], edx
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x52a3e7
lea eax, [esp + 0x1d0]
push str.LayerSetPointSize
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a498
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bcff
lea edi, [eax - 2]
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x529528
lea ebx, [esp + 0x28]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xb8], ecx
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x52a4b0
lea eax, [esp + 0x1d0]
push str.LayerSetHeight
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a561
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bcff
lea edi, [eax - 2]
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x529528
lea ebx, [esp + 0x28]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc4], ecx
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x52a579
lea eax, [esp + 0x1d0]
push str.LayerSetImage
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a828
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bcff
mov dword [esp + 0x200], edi
mov dword [esp + 0x1fc], 0
mov byte [esp + 0x1ec], 0
lea edi, [eax - 2]
mov byte [esp + 0x230], 0x23
call fcn.004f52d0
mov eax, dword [eax]
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, ebx
call fcn.00528ee0
test al, al
je 0x52a81e
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, ebx
call fcn.004f08d0
test al, al
je 0x52a81e
push 0
lea edx, [ebx + 0xa0]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.004e7740
add esp, 0xc
mov edi, eax
lea ecx, [esp + 0x1e8]
push ecx
lea esi, [esp + 0x6c]
mov byte [esp + 0x234], 0x24
call fcn.004e6880
add esp, 4
mov edx, eax
mov eax, edi
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0x25
call fcn.004e7130
lea ecx, [esp + 0x68]
call fcn.00401c70
lea ecx, [esp + 0xbc]
mov byte [esp + 0x230], 0x28
call fcn.00401c70
mov eax, dword [0x6b9d90]
mov dl, byte [eax + 0x504]
push 0x66f61c
lea ecx, [esp + 0x208]
mov byte [esp + 0x6b], dl
mov byte [eax + 0x504], 0
call fcn.00402130
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x208]
push edx
mov byte [esp + 0x238], 0x29
mov ecx, dword [ebx + 0x74]
mov eax, dword [ecx]
mov eax, dword [eax + 0x114]
mov edx, esi
push edx
lea edx, [esp + 0x38]
push edx
call eax
lea ecx, [esp + 0x204]
mov byte [esp + 0x230], 0x2b
call fcn.00401c70
mov esi, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x1b8]
lea ecx, [esi + 0x84]
push edx
call fcn.00401d10
mov eax, dword [0x6b9d90]
mov cl, byte [esp + 0x67]
mov byte [eax + 0x504], cl
lea ecx, [esp + 0x2c]
call fcn.00539ef0
test eax, eax
je 0x52a7c8
cmp byte [esp + 0x18], 0
je 0x52a799
call fcn.00539ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x88]
call eax
push str.GetImage
lea ecx, [esp + 0x4c]
call fcn.00402130
lea eax, [esp + 0x2c]
mov byte [esp + 0x230], 0x2c
call fcn.00539f10
lea ecx, [esp + 0x1b0]
push ecx
lea edi, [esp + 0x88]
mov ebx, eax
call fcn.004e70c0
add esp, 4
mov byte [esp + 0x230], 0x2d
mov edx, dword [ebx]
mov edx, dword [edx + 0xc8]
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, ebx
call edx
mov ecx, edi
call fcn.00401c70
lea ecx, [esp + 0x48]
mov byte [esp + 0x230], 0x2b
call fcn.00401c70
lea eax, [esp + 0x2c]
push eax
lea eax, [esi + 0x78]
call fcn.00539e90
lea esi, [esp + 0x2c]
mov byte [esp + 0x230], 0x28
call fcn.00539e30
lea ecx, [esp + 0x1b0]
call fcn.00401c70
jmp 0x529509
push str.Failed_to_Load_Image
lea ecx, [esp + 0x4c]
call fcn.00402130
mov byte [esp + 0x230], 0x2e
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
call edx
lea ecx, [esp + 0x48]
call fcn.00401c70
lea esi, [esp + 0x2c]
mov byte [esp + 0x230], 0x28
call fcn.00539e30
lea ecx, [esp + 0x1b0]
call fcn.00401c70
lea ecx, [esp + 0x1e8]
jmp 0x52bdd7
mov byte [esp + 0x13], 1
jmp 0x529509
mov eax, dword [esp + 0x1d0]
mov edi, 0x10
cmp dword [esp + 0x1e4], edi
jae 0x52a844
lea eax, [esp + 0x1d0]
push str.LayerSetDrawMode
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a8fe
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x529528
lea ebx, [esp + 0x20]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
cmp eax, 1
ja 0x529528
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0xa0], eax
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52a915
lea eax, [esp + 0x1d0]
push str.LayerSetColorMult
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52a987
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
add ecx, 0x58
push ecx
push edx
mov edx, dword [esp + 0x1c]
call fcn.00529020
test al, al
jne 0x529e85
jmp 0x529528
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52a99e
lea eax, [esp + 0x1d0]
push str.LayerSetColorAdd
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52aa10
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
add ecx, 0x68
push ecx
push edx
mov edx, dword [esp + 0x1c]
call fcn.00529020
test al, al
jne 0x529e85
jmp 0x529528
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52aa27
lea eax, [esp + 0x1d0]
push str.LayerSetAscent
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52aad8
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x529528
lea ebx, [esp + 0x28]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xbc], ecx
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52aaef
lea eax, [esp + 0x1d0]
push str.LayerSetAscentPadding
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52aba0
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x529528
lea ebx, [esp + 0x28]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc0], ecx
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52abb7
lea eax, [esp + 0x1d0]
push str.LayerSetLineSpacingOffset
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52ac68
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x529528
lea ebx, [esp + 0x28]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xcc], ecx
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52ac7f
lea eax, [esp + 0x1d0]
push str.LayerSetOffset
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52ad81
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
lea edi, [eax - 2]
mov byte [esp + 0x230], 0x2f
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x52ad63
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1b0]
push ecx
push edx
push eax
call fcn.004f0e60
test al, al
je 0x52ad63
mov ecx, dword [esp + 0x1b4]
cmp ecx, ebx
je 0x52ad63
mov eax, dword [esp + 0x1b8]
sub eax, ecx
sar eax, 2
cmp eax, edi
jne 0x52ad63
xor edi, edi
lea esi, [esp + 0x1b0]
call fcn.00442810
mov ecx, dword [eax]
mov ebx, dword [esp + 0x20]
mov edi, 1
mov dword [ebx + 0xa4], ecx
call fcn.00442810
mov edx, dword [eax]
mov dword [ebx + 0xa8], edx
mov byte [esp + 0x230], 0
call fcn.004d46c0
jmp 0x52951d
lea esi, [esp + 0x1b0]
mov byte [esp + 0x13], 1
mov byte [esp + 0x230], 0
call fcn.004d46c0
jmp 0x52951d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52ad98
lea eax, [esp + 0x1d0]
push str.LayerSetCharWidths
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52af13
mov eax, esi
call fcn.004f52b0
cmp eax, 4
jne 0x52bd04
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea edi, [eax - 3]
mov byte [esp + 0x230], 0x31
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x52aeec
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x52aeec
mov edi, 3
call fcn.004f52d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.004f0e60
test al, al
je 0x52aeec
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x52ae61
xor esi, esi
jmp 0x52ae6a
mov esi, dword [esp + 0x50]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1b0]
call fcn.00441b40
cmp eax, esi
jne 0x52aee5
xor edi, edi
cmp eax, ebx
jbe 0x52aef1
lea esi, [esp + 0x1b0]
call fcn.00441b70
cmp dword [eax + 0x14], 1
jne 0x52aecb
lea esi, [esp + 0x48]
call fcn.00442810
push ebx
lea esi, [esp + 0x1b4]
mov dword [esp + 0x2c], eax
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
movzx ecx, byte [eax]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00528860
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
mov dword [eax + 0x24], ecx
jmp 0x52aed0
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, 1
call fcn.00441b40
cmp edi, eax
jb 0x52ae80
jmp 0x52aef1
mov byte [esp + 0x1f], 1
jmp 0x52aef1
mov byte [esp + 0x13], 1
lea esi, [esp + 0x48]
call fcn.004d46c0
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52af2a
lea eax, [esp + 0x1d0]
push str.LayerSetSpacing
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52b010
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], ebx
lea edi, [eax - 2]
mov byte [esp + 0x230], 0x32
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x52aff2
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x52aff2
lea ebx, [esp + 0x28]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x52aff2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0x1e8]
mov dword [eax + 0xac], ecx
mov byte [esp + 0x230], 0
call fcn.004d46c0
jmp 0x52951d
lea esi, [esp + 0x1e8]
mov byte [esp + 0x13], 1
mov byte [esp + 0x230], 0
call fcn.004d46c0
jmp 0x52951d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52b027
lea eax, [esp + 0x1d0]
push str.LayerSetImageMap
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52b404
mov eax, esi
call fcn.004f52b0
cmp eax, 4
jne 0x52bd04
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
lea edx, [esp + 0x1e8]
push edx
mov byte [esp + 0x234], 0x33
call fcn.004ef9c0
mov edi, 1
mov byte [esp + 0x230], 0x34
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x52b3d2
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x52b3d2
mov edi, 3
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x1e8]
call fcn.004f0e20
test al, al
je 0x52b3d2
mov eax, dword [esp + 0x1f4]
cmp eax, ebx
jne 0x52b0fe
xor edi, edi
jmp 0x52b10a
mov edi, dword [esp + 0x1f8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x1b0]
call fcn.00441b40
mov esi, eax
cmp esi, edi
jne 0x52b3cb
mov edx, dword [esp + 0x38]
add edx, 0x78
mov ecx, edx
call fcn.00539ef0
test eax, eax
je 0x52b391
call fcn.00539ef0
mov ecx, eax
call fcn.00527e40
mov ecx, edx
mov dword [esp + 0x3c], eax
call fcn.00539ef0
mov ecx, eax
call fcn.00527e50
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jbe 0x52b2be
jmp 0x52b170
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0x35
call fcn.00441b70
cmp dword [eax + 0x14], 1
jne 0x52b28d
lea esi, [esp + 0x1f0]
call fcn.004f52d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.004f0e60
test al, al
je 0x52b28d
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x52b28d
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 2
cmp eax, 4
jne 0x52b28d
lea edi, [eax - 1]
lea esi, [esp + 0x48]
call fcn.00442810
mov ecx, dword [eax]
mov edi, 2
mov dword [esp + 0x20], ecx
call fcn.00442810
mov edx, dword [eax]
mov edi, 1
mov dword [esp + 0x18], edx
call fcn.00442810
mov eax, dword [eax]
xor edi, edi
mov dword [esp + 0x44], eax
call fcn.00442810
mov ebx, dword [eax]
test ebx, ebx
jl 0x52b32b
mov eax, dword [esp + 0x44]
test eax, eax
jl 0x52b32b
mov ecx, dword [esp + 0x18]
add ecx, ebx
cmp ecx, dword [esp + 0x3c]
jg 0x52b32b
mov edx, dword [esp + 0x20]
add eax, edx
cmp eax, dword [esp + 0x2c]
jg 0x52b32b
push edi
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x1b4]
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
movzx eax, byte [eax]
mov ecx, dword [esp + 0x38]
push eax
call fcn.00528860
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
xor ebx, ebx
jmp 0x52b292
mov byte [esp + 0x13], 1
lea esi, [esp + 0x48]
mov byte [esp + 0x230], 0x34
call fcn.004d46c0
add edi, 1
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], edi
call fcn.00441b40
cmp edi, eax
jb 0x52b170
mov eax, dword [esp + 0x38]
mov dword [eax + 0xc8], ebx
lea ebx, [eax + 0x4c]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
lea esp, [esp]
mov ecx, dword [ebx + 4]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x2c]
mov dword [esp + 0x40], ecx
call fcn.004f5290
test al, al
je 0x52b3d7
mov esi, edi
call fcn.004f3620
mov edx, dword [eax + 0x18]
mov ecx, dword [esp + 0x38]
add eax, 4
mov eax, dword [eax + 0xc]
add eax, edx
cmp eax, dword [ecx + 0xc8]
jle 0x52b320
mov dword [ecx + 0xc8], eax
lea esi, [esp + 0x2c]
call fcn.0053d550
jmp 0x52b2e0
push str.Image_rectangle_out_of_bounds
lea ecx, [esp + 0x208]
call fcn.00402130
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x230], 0x36
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x204]
push eax
call edx
lea ecx, [esp + 0x204]
call fcn.00401c70
lea esi, [esp + 0x48]
call fcn.004d46c0
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0x33
call fcn.004efa30
lea esi, [esp + 0x1b0]
call fcn.00441b00
jmp 0x52bddc
push str.Layer_image_not_set
lea ecx, [esp + 0x208]
call fcn.00402130
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x230], 0x37
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x204]
push eax
call edx
lea ecx, [esp + 0x204]
call fcn.00401c70
jmp 0x52b36c
mov byte [esp + 0x1f], 1
jmp 0x52b3d7
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0x33
call fcn.004efa30
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52b41b
lea eax, [esp + 0x1d0]
push str.LayerSetCharOffsets
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52b638
mov eax, esi
call fcn.004f52b0
cmp eax, 4
jne 0x52bd04
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea eax, [esp + 0x1e8]
push eax
mov byte [esp + 0x234], 0x38
call fcn.004ef9c0
mov edi, 1
mov byte [esp + 0x230], 0x39
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x52b609
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x4c]
call fcn.004f0b00
test al, al
je 0x52b609
mov edi, 3
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x1e8]
call fcn.004f0e20
test al, al
je 0x52b609
mov eax, dword [esp + 0x1f4]
cmp eax, ebx
je 0x52b4ee
mov ebx, dword [esp + 0x1f8]
sub ebx, eax
sar ebx, 2
lea ecx, [esp + 0x48]
call fcn.00441b40
cmp eax, ebx
jne 0x52b602
xor ebx, ebx
test eax, eax
jbe 0x52b60e
lea esp, [esp]
xor eax, eax
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], eax
mov edi, ebx
lea esi, [esp + 0x48]
mov byte [esp + 0x230], 0x3a
call fcn.00441b70
cmp dword [eax + 0x14], 1
jne 0x52b5db
lea esi, [esp + 0x1f0]
call fcn.004f52d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1b0]
push ecx
push edx
push eax
call fcn.004f0e60
test al, al
je 0x52b5db
mov ecx, dword [esp + 0x1b4]
test ecx, ecx
je 0x52b5db
mov eax, dword [esp + 0x1b8]
sub eax, ecx
sar eax, 2
cmp eax, 2
jne 0x52b5db
lea edi, [eax - 1]
lea esi, [esp + 0x1b0]
call fcn.00442810
mov ecx, dword [eax]
xor edi, edi
mov dword [esp + 0x3c], ecx
call fcn.00442810
mov edx, dword [eax]
push edi
mov edi, ebx
lea esi, [esp + 0x4c]
mov dword [esp + 0x24], edx
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
movzx eax, byte [eax]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00528860
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jmp 0x52b5e0
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1b0]
call fcn.004d46c0
lea ecx, [esp + 0x48]
add ebx, 1
call fcn.00441b40
cmp ebx, eax
jb 0x52b510
jmp 0x52b60e
mov byte [esp + 0x1f], 1
jmp 0x52b60e
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0x38
call fcn.004efa30
lea esi, [esp + 0x48]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52b64f
lea eax, [esp + 0x1d0]
push str.LayerSetKerningPairs
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52b817
mov eax, esi
call fcn.004f52b0
cmp eax, 4
jne 0x52bd04
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], ebx
lea edi, [eax - 3]
mov byte [esp + 0x230], 0x3c
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x52b806
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x52b806
mov edi, 3
call fcn.004f52d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1e8]
push ecx
push edx
push eax
call fcn.004f0e60
test al, al
je 0x52b806
mov eax, dword [esp + 0x1ec]
cmp eax, ebx
jne 0x52b727
xor esi, esi
jmp 0x52b733
mov esi, dword [esp + 0x1f0]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1b0]
call fcn.00441b40
cmp eax, esi
jne 0x52b7f5
xor edi, edi
cmp eax, ebx
jbe 0x52b80b
lea esi, [esp + 0x1b0]
call fcn.00441b70
cmp dword [eax + 0x14], 2
jne 0x52b7cd
push 0
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
movzx ecx, byte [eax]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00528860
lea esi, [esp + 0x1e8]
mov ebx, eax
call fcn.00442810
push 1
lea esi, [esp + 0x1b4]
mov dword [esp + 0x40], eax
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
mov dl, byte [eax]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov byte [esp + 0x20], dl
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x4c]
push eax
add ebx, 0x18
mov dword [esp + 0x2c], ecx
call fcn.0053a630
jmp 0x52b7d2
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, 1
call fcn.00441b40
cmp edi, eax
jb 0x52b751
lea esi, [esp + 0x1e8]
jmp 0x52aef5
mov byte [esp + 0x1f], 1
lea esi, [esp + 0x1e8]
jmp 0x52aef5
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1e8]
jmp 0x52aef5
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52b82e
lea eax, [esp + 0x1d0]
push str.LayerSetBaseOrder
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52b8df
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x529528
lea ebx, [esp + 0x3c]
call fcn.004f52d0
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.00401c40
mov esi, ebx
call fcn.004e6990
add esp, 0x1c
test al, al
je 0x529528
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xd0], ecx
lea ecx, [esp + 0x1cc]
call fcn.00401c70
mov al, 1
jmp 0x52bdea
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52b8f6
lea eax, [esp + 0x1d0]
push str.LayerSetCharOrders
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52ba72
mov eax, esi
call fcn.004f52b0
cmp eax, 4
jne 0x52bd04
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], ebx
lea edi, [eax - 3]
mov byte [esp + 0x230], 0x3e
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00528ee0
test al, al
je 0x52b806
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x52b806
mov edi, 3
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1e8]
push edx
push eax
push ecx
call fcn.004f0e60
test al, al
je 0x52b806
mov eax, dword [esp + 0x1ec]
cmp eax, ebx
jne 0x52b9ce
xor esi, esi
jmp 0x52b9da
mov esi, dword [esp + 0x1f0]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1b0]
call fcn.00441b40
cmp eax, esi
jne 0x52b7f5
xor edi, edi
cmp eax, ebx
jbe 0x52b80b
jmp 0x52ba00
lea esi, [esp + 0x1b0]
call fcn.00441b70
cmp dword [eax + 0x14], 1
jne 0x52ba4e
lea esi, [esp + 0x1e8]
call fcn.00442810
push ebx
lea esi, [esp + 0x1b4]
mov dword [esp + 0x40], eax
call fcn.00441b70
mov ecx, eax
call fcn.00440e00
movzx edx, byte [eax]
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00528860
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov dword [eax + 0x28], edx
jmp 0x52ba53
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, 1
call fcn.00441b40
cmp edi, eax
jb 0x52ba00
lea esi, [esp + 0x1e8]
jmp 0x52aef5
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x52ba89
lea eax, [esp + 0x1d0]
push str.LayerSetExInfo
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52bc5e
mov eax, esi
call fcn.004f52b0
cmp eax, 4
jne 0x52bd04
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
lea edi, [eax - 3]
mov byte [esp + 0x230], 0x40
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x52bc34
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1ec]
call fcn.004f0b00
test al, al
je 0x52bc34
mov edi, 3
call fcn.004f52d0
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1b4]
call fcn.004f0b00
test al, al
je 0x52bc34
lea ecx, [esp + 0x1e8]
call fcn.00441b40
lea ecx, [esp + 0x1b0]
mov esi, eax
call fcn.00441b40
cmp esi, eax
jne 0x52bc0a
xor edi, edi
cmp esi, ebx
jbe 0x52bc39
mov ebx, dword [esp + 0x2c]
add ebx, 4
lea esi, [esp + 0x1b0]
call fcn.00441b70
push eax
lea esi, [esp + 0x1ec]
call fcn.00441b70
push eax
lea edx, [esp + 0x8c]
push edx
call fcn.00445f70
push eax
lea eax, [esp + 0x4c]
push eax
push ebx
mov byte [esp + 0x23c], 0x41
call fcn.004f3430
lea esi, [esp + 0x84]
mov byte [esp + 0x230], 0x40
call fcn.004435b0
lea ecx, [esp + 0x1e8]
add edi, 1
call fcn.00441b40
cmp edi, eax
jb 0x52bb83
lea esi, [esp + 0x1b0]
call fcn.00441b00
lea esi, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
lea esi, [esp + 0x1b0]
mov byte [esp + 0x1f], 1
call fcn.00441b00
lea esi, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1b0]
call fcn.00441b00
lea esi, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.00441b00
jmp 0x52951d
push str.LayerSetAlphaCorrection
lea ecx, [esp + 0x1d0]
call fcn.00401ca0
push eax
call fcn.0062517b
add esp, 8
test eax, eax
jne 0x52bda4
mov eax, esi
call fcn.004f52b0
cmp eax, 3
jne 0x52bd04
lea edi, [eax - 2]
mov dword [esp + 0x20], ebx
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00528ee0
test al, al
je 0x529528
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.004f52d0
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004f0a10
test al, al
je 0x529528
cmp dword [esp + 0x20], ebx
mov eax, dword [esp + 0x2c]
setne dl
lea ecx, [esp + 0x1cc]
mov byte [eax + 0xd4], dl
call fcn.00401c70
mov al, 1
jmp 0x52bdea
mov edi, 0x10
push str.Invalid_Number_of_Parameters
lea ecx, [esp + 0x208]
call fcn.00402130
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x230], 0x43
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x204]
push eax
call edx
cmp dword [esp + 0x21c], edi
jb 0x52bd49
mov eax, dword [esp + 0x208]
push eax
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x1e4], edi
jb 0x52bde8
mov ecx, dword [esp + 0x1d0]
push ecx
call fcn.0062493b
add esp, 4
jmp 0x52bde8
cmp byte [esp + 0x1f], 0
je 0x529e85
push str.List_Size_Mismatch
lea ecx, [esp + 0x208]
call fcn.00402130
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x230], 0x46
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [esp + 0x204]
push edx
call eax
jmp 0x52bdd0
push str.Unknown_Command
lea ecx, [esp + 0x208]
call fcn.00402130
mov byte [esp + 0x230], 0x42
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x204]
push eax
call edx
lea ecx, [esp + 0x204]
call fcn.00401c70
lea ecx, [esp + 0x1cc]
call fcn.00401c70
xor al, al
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00624940
mov esp, ebp
pop ebp
ret 4