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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64c538
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x699fe8]
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 0x589cc1
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
jne 0x589cc6
call fcn.0061c63f
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.00403e20
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 0x589d21
lea eax, [esp + 0x1d0]
push str.Define
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x589fac
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x58c748
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 3
jne 0x58c748
cmp ecx, ebx
je 0x589d64
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x589d69
call fcn.0061c63f
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
cmp byte [eax + 4], 0
jne 0x589f88
mov ecx, edx
cmp ecx, ebx
je 0x589d8c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x589d91
call fcn.0061c63f
mov eax, dword [esi + 4]
mov ebx, dword [eax + 4]
add eax, 4
add ebx, 8
lea edi, [esp + 0x1e8]
call fcn.005af980
mov bl, 1
mov eax, edi
mov byte [esp + 0x230], bl
call fcn.005b8dd0
test al, al
jne 0x589fa6
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.00556ef0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov edx, dword [edi + 4]
mov dword [esp + 0x40], edx
je 0x589df0
cmp ebx, edi
je 0x589df5
call fcn.0061c63f
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x40]
je 0x589e2e
lea esi, [esp + 0x2c]
call fcn.0059bf40
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x589e19
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.0059b2f0
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
je 0x589ed2
push 0x18
call fcn.0061c130
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 2
je 0x589e68
push eax
call fcn.005b87b0
mov ebx, eax
jmp 0x589e6a
xor ebx, ebx
mov byte [esp + 0x230], 1
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [eax]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.005b9030
test al, al
jne 0x589eab
test ebx, ebx
je 0x589e9f
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x1e8]
jmp 0x58c820
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1ec]
push edx
lea esi, [esp + 0x8c]
mov dword [esp + 0x28], ebx
call fcn.0059bf60
mov byte [esp + 0x230], 3
jmp 0x589f4e
mov esi, dword [esp + 0x18]
call fcn.00541960
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 0x589f20
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.0059bf60
mov byte [esp + 0x230], 4
jmp 0x589f4e
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.0059bf60
mov byte [esp + 0x230], 5
push eax
mov eax, dword [esp + 0x3c]
push eax
lea ebx, [esp + 0x34]
call fcn.0059b190
lea esi, [esp + 0x84]
call fcn.00552d40
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.00404420
cmp byte [esp + 0x13], 0
je 0x58c7b4
push str.Invalid_Paramater_Type
lea ecx, [esp + 0x208]
call fcn.00404450
mov byte [esp + 0x230], 0x44
jmp 0x58c806
mov byte [esp + 0x13], bl
jmp 0x589f69
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x589fc4
lea eax, [esp + 0x1d0]
push str.CreateHorzSpanRectList
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58a52c
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x58c748
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 4
jne 0x58c748
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 0x58a030
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x58a035
call fcn.0061c63f
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
cmp byte [edx + 4], 0
jne 0x58a4e3
mov edi, 2
call fcn.00541960
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1b0]
push ecx
push edx
push eax
call fcn.005b9c40
test al, al
je 0x58a4e3
mov ecx, dword [esp + 0x1b4]
cmp ecx, ebx
je 0x58a4e3
mov eax, dword [esp + 0x1b8]
sub eax, ecx
sar eax, 2
cmp eax, 4
jne 0x58a4e3
mov esi, dword [esp + 0x18]
lea edi, [eax - 1]
call fcn.00541960
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.005b9c40
test al, al
je 0x58a4e3
mov edi, 1
call fcn.00541960
mov ebx, dword [eax]
add ebx, 8
lea edi, [esp + 0x204]
call fcn.005af980
mov bl, 8
mov byte [esp + 0x230], bl
xor esi, esi
push 0x18
mov dword [esp + 0x48], esi
call fcn.0061c130
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov byte [esp + 0x230], 9
je 0x58a106
push eax
call fcn.005b87b0
mov dword [esp + 0x28], eax
jmp 0x58a10a
mov dword [esp + 0x28], esi
mov byte [esp + 0x230], bl
mov dword [esp + 0x38], esi
jmp 0x58a120
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
je 0x58a42f
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x38], eax
jae 0x58a42f
push 0x18
call fcn.0061c130
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov byte [esp + 0x230], 0xa
je 0x58a165
push eax
call fcn.005b87b0
mov dword [esp + 0x18], eax
jmp 0x58a169
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.0059b130
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.00541960
mov edx, dword [eax]
add edx, dword [esp + 0x44]
lea esi, [esp + 0x68]
push edx
push 0x657b78
call fcn.005b0ca0
add esp, 8
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0xc
call fcn.00403e20
mov ecx, esi
mov byte [esp + 0x230], bl
call fcn.00404420
push 0x28
call fcn.0061c130
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0xd
je 0x58a225
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.005b85a0
jmp 0x58a227
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.0059b130
mov edi, 1
lea esi, [esp + 0x1b0]
call fcn.00541960
mov edx, dword [eax]
push edx
push 0x657b78
lea esi, [esp + 0x70]
call fcn.005b0ca0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0xe
call fcn.00403e20
mov bl, 0xb
mov ecx, esi
mov byte [esp + 0x230], bl
call fcn.00404420
push 0x28
call fcn.0061c130
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0xf
je 0x58a2be
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.005b85a0
jmp 0x58a2c0
xor eax, eax
mov byte [esp + 0x230], bl
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0059b130
mov edi, dword [esp + 0x38]
lea esi, [esp + 0x48]
call fcn.00541960
mov edx, dword [eax]
push edx
push 0x657b78
lea esi, [esp + 0x70]
call fcn.005b0ca0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0x10
call fcn.00403e20
mov bl, 0xb
mov ecx, esi
mov byte [esp + 0x230], bl
call fcn.00404420
push 0x28
call fcn.0061c130
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0x11
je 0x58a34c
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.005b85a0
jmp 0x58a34e
xor eax, eax
mov byte [esp + 0x230], bl
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0059b130
mov edi, 3
lea esi, [esp + 0x1b0]
call fcn.00541960
mov edx, dword [eax]
push edx
push 0x657b78
lea esi, [esp + 0x70]
call fcn.005b0ca0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x23c], 0x12
call fcn.00403e20
mov bl, 0xb
mov ecx, esi
mov byte [esp + 0x230], bl
call fcn.00404420
push 0x28
call fcn.0061c130
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x230], 0x13
je 0x58a3de
lea ecx, [esp + 0x1e8]
push ecx
push eax
call fcn.005b85a0
jmp 0x58a3e0
xor eax, eax
mov byte [esp + 0x230], bl
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0059b130
mov edi, dword [esp + 0x38]
lea esi, [esp + 0x48]
call fcn.00541960
mov edx, dword [eax]
add dword [esp + 0x44], edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 8
call fcn.00404420
add edi, 1
mov dword [esp + 0x38], edi
mov bl, 8
xor esi, esi
jmp 0x58a120
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.00556ef0
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.0059bf20
test al, al
je 0x58a498
mov esi, edi
call fcn.0059bf40
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x58a47f
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.0059b2f0
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.0059bf60
mov byte [esp + 0x230], 0x14
mov edx, dword [esp + 0x38]
push eax
push edx
lea ebx, [esp + 0x34]
call fcn.0059b190
call fcn.00552d40
lea ecx, [esp + 0x204]
call fcn.00404420
jmp 0x58a4e8
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, esi
je 0x58a4fb
push eax
call fcn.0061c19a
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 0x589f7d
push eax
call fcn.0061c19a
add esp, 4
jmp 0x589f7d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58a544
lea eax, [esp + 0x1d0]
push str.SetDefaultPointSize
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58a5db
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x58c748
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 2
jne 0x58c748
lea edi, [eax - 1]
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x589f88
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x20]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x78], eax
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58a5f3
lea eax, [esp + 0x1d0]
push str.SetCharMap
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58a77b
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x58c748
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 3
jne 0x58c748
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.00541960
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58a754
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
call fcn.005b98f0
test al, al
je 0x58a754
lea ecx, [esp + 0x1b0]
call fcn.0051ae30
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.0051ae30
cmp esi, eax
jne 0x58a74d
xor edi, edi
cmp esi, ebx
jbe 0x58a759
lea ebx, [edi + 1]
lea esi, [esp + 0x1b0]
call fcn.0051ae60
cmp dword [eax + 0x14], ebx
jne 0x58a730
lea esi, [esp + 0x48]
call fcn.0051ae60
cmp dword [eax + 0x14], ebx
jne 0x58a730
push 0
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
push 0
lea esi, [esp + 0x1b4]
mov ebx, eax
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
mov dl, byte [eax]
mov al, byte [ebx]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
push ecx
lea edx, [esp + 0x30]
push edx
add ebx, 0x7c
mov byte [esp + 0x21], al
call fcn.0059bac0
mov ebx, 1
jmp 0x58a735
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, ebx
call fcn.0051ae30
cmp edi, eax
jb 0x58a6c3
jmp 0x58a759
mov byte [esp + 0x1f], 1
jmp 0x58a759
mov byte [esp + 0x13], 1
lea esi, [esp + 0x48]
call fcn.0051b050
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58a793
lea eax, [esp + 0x1d0]
push str.CreateLayer
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58a8fc
mov eax, esi
call fcn.00541940
cmp eax, 2
jne 0x58c748
lea edi, [eax - 1]
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x589f88
mov esi, dword [esp + 0x18]
call fcn.00541960
mov ebx, dword [eax]
add ebx, 8
lea edi, [esp + 0x204]
call fcn.005af980
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0xdc]
push ecx
mov byte [esp + 0x238], 0x17
call fcn.00588f60
lea edi, [esi + 0x88]
mov ebx, edi
mov byte [esp + 0x230], 0x18
call fcn.0059bc50
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x234], 0x17
call fcn.0058c860
call fcn.0059bc30
mov edi, eax
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20c]
lea ecx, [edi + 0x10]
push eax
mov dword [esp + 0x2c], edi
call fcn.00403e20
mov esi, dword [esi + 0x90]
lea ecx, [esp + 0x20]
add esi, 0xffffffff
push ecx
lea edx, [esp + 0x208]
mov dword [edi + 0xd0], esi
push edx
lea esi, [esp + 0x8c]
call fcn.0059bf60
mov edi, dword [esp + 0x14]
push eax
lea eax, [edi + 0x94]
push eax
lea ebx, [esp + 0x34]
mov byte [esp + 0x238], 0x19
call fcn.0059bc80
cmp byte [eax + 8], 0
mov byte [esp + 0x230], 0x17
sete bl
call fcn.00552d40
test bl, bl
je 0x58a8dd
push str.Layer_Already_Exists
lea ecx, [esp + 0x1ec]
call fcn.00404450
mov byte [esp + 0x230], 0x1a
mov edx, dword [edi]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x1e8]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 0x1e8]
call fcn.00404420
lea ecx, [esp + 0x204]
call fcn.00404420
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58a914
lea eax, [esp + 0x1d0]
push str.CreateLayerFrom
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58aa82
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c748
lea edi, [eax - 2]
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x589f88
mov edi, 1
call fcn.00541960
mov ebx, dword [eax]
add ebx, 8
lea edi, [esp + 0x204]
call fcn.005af980
lea eax, [esp + 0xd8]
mov byte [esp + 0x230], 0x1b
mov edi, dword [esp + 0x20]
push eax
call fcn.00589100
mov esi, dword [esp + 0x14]
lea edi, [esi + 0x88]
mov ebx, edi
mov byte [esp + 0x230], 0x1c
call fcn.0059bc50
lea ecx, [esp + 0xd8]
push ecx
mov byte [esp + 0x234], 0x1b
call fcn.0058c860
call fcn.0059bc30
push 0xffffffffffffffff
mov edi, eax
push 0
lea edx, [esp + 0x20c]
lea ecx, [edi + 0x10]
push edx
mov dword [esp + 0x2c], edi
call fcn.00403e20
mov eax, dword [esi + 0x90]
add eax, 0xffffffff
mov dword [edi + 0xd0], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x208]
push ecx
lea esi, [esp + 0x8c]
call fcn.0059bf60
mov edi, dword [esp + 0x14]
push eax
lea edx, [edi + 0x94]
push edx
lea ebx, [esp + 0x34]
mov byte [esp + 0x238], 0x1d
call fcn.0059bc80
cmp byte [eax + 8], 0
mov byte [esp + 0x230], 0x1b
sete bl
call fcn.00552d40
test bl, bl
je 0x58a8dd
push str.Layer_Already_Exists
lea ecx, [esp + 0x1ec]
call fcn.00404450
mov byte [esp + 0x230], 0x1e
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x1e8]
push ecx
jmp 0x58a8cd
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58aa9a
lea eax, [esp + 0x1d0]
push str.LayerRequireTags
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58abd8
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c748
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.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x58abba
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58abba
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], ebx
call fcn.0051ae30
test eax, eax
jbe 0x58abbf
mov edx, dword [esp + 0x20]
add edx, 0x2c
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x1b0]
call fcn.0051ae60
mov ebx, eax
lea edi, [esp + 0x68]
call fcn.005af980
mov byte [esp + 0x230], 0x20
mov esi, dword [esp + 0x20]
push eax
call fcn.0051aea0
mov ecx, edi
mov byte [esp + 0x230], 0x1f
call fcn.00404420
mov esi, dword [esp + 0x28]
add esi, 1
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], esi
call fcn.0051ae30
cmp esi, eax
jb 0x58ab4a
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58abf0
lea eax, [esp + 0x1d0]
push str.LayerExcludeTags
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58ad10
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c748
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.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x58abba
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58abba
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], ebx
call fcn.0051ae30
test eax, eax
jbe 0x58abbf
mov edx, dword [esp + 0x20]
add edx, 0x3c
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x1b0]
call fcn.0051ae60
mov ebx, eax
lea edi, [esp + 0x68]
call fcn.005af980
mov byte [esp + 0x230], 0x22
mov esi, dword [esp + 0x20]
push eax
call fcn.0051aea0
mov ecx, edi
mov byte [esp + 0x230], 0x21
call fcn.00404420
mov esi, dword [esp + 0x28]
add esi, 1
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], esi
call fcn.0051ae30
cmp esi, eax
jb 0x58aca0
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58ad28
lea eax, [esp + 0x1d0]
push str.LayerPointRange
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58ae32
mov eax, esi
call fcn.00541940
cmp eax, 4
jne 0x58c748
lea edi, [eax - 3]
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x589f88
mov ebx, dword [esp + 0x18]
mov edi, 2
mov esi, ebx
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x589f88
mov edi, 3
call fcn.00541960
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x589f88
mov edi, 2
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
lea esi, [esp + 0x44]
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov edi, 3
mov esi, ebx
call fcn.00541960
mov eax, dword [eax]
sub esp, 0x1c
add eax, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0041f160
lea esi, [esp + 0x60]
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
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.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58ae4a
lea eax, [esp + 0x1d0]
push str.LayerSetPointSize
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58aefb
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c748
lea edi, [eax - 2]
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x589f88
lea ebx, [esp + 0x28]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xb8], ecx
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58af13
lea eax, [esp + 0x1d0]
push str.LayerSetHeight
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58afc4
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c748
lea edi, [eax - 2]
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x589f88
lea ebx, [esp + 0x28]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc4], ecx
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], 0x10
mov eax, dword [esp + 0x1d0]
jae 0x58afdc
lea eax, [esp + 0x1d0]
push str.LayerSetImage
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b285
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c748
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.00541960
mov eax, dword [eax]
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, ebx
call fcn.00589930
test al, al
je 0x58b27b
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, ebx
call fcn.005b96c0
test al, al
je 0x58b27b
lea eax, [ebx + 0xa0]
lea esi, [esp + 0xbc]
call fcn.005b09d0
mov edi, eax
lea edx, [esp + 0x1e8]
push edx
lea esi, [esp + 0x6c]
mov byte [esp + 0x234], 0x24
call fcn.005afc50
add esp, 4
mov edx, eax
mov eax, edi
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0x25
call fcn.005b0520
lea ecx, [esp + 0x68]
call fcn.00404420
lea ecx, [esp + 0xbc]
mov byte [esp + 0x230], 0x28
call fcn.00404420
mov eax, dword [0x6a9f38]
mov cl, byte [eax + 0x504]
mov byte [esp + 0x67], cl
push 0x65540c
lea ecx, [esp + 0x208]
mov byte [eax + 0x504], 0
call fcn.00404450
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x208]
push eax
mov byte [esp + 0x238], 0x29
mov ecx, dword [ebx + 0x74]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10c]
mov eax, esi
push eax
lea eax, [esp + 0x38]
push eax
call edx
lea ecx, [esp + 0x204]
mov byte [esp + 0x230], 0x2b
call fcn.00404420
mov esi, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1b8]
lea ecx, [esi + 0x84]
push eax
call fcn.00403e20
mov ecx, dword [0x6a9f38]
mov dl, byte [esp + 0x67]
mov byte [ecx + 0x504], dl
lea ecx, [esp + 0x2c]
call fcn.0059a980
test eax, eax
je 0x58b225
cmp byte [esp + 0x18], 0
je 0x58b1f6
call fcn.0059a980
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x88]
call eax
push str.GetImage
lea ecx, [esp + 0x4c]
call fcn.00404450
lea eax, [esp + 0x2c]
mov byte [esp + 0x230], 0x2c
call fcn.0059a9a0
lea ecx, [esp + 0x1b0]
push ecx
lea edi, [esp + 0x88]
mov ebx, eax
call fcn.005b04b0
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.00404420
lea ecx, [esp + 0x48]
mov byte [esp + 0x230], 0x2b
call fcn.00404420
lea eax, [esp + 0x2c]
push eax
lea eax, [esi + 0x78]
call fcn.0059a920
lea esi, [esp + 0x2c]
mov byte [esp + 0x230], 0x28
call fcn.0059a8c0
lea ecx, [esp + 0x1b0]
call fcn.00404420
jmp 0x589f69
push str.Failed_to_Load_Image
lea ecx, [esp + 0x4c]
call fcn.00404450
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.00404420
lea esi, [esp + 0x2c]
mov byte [esp + 0x230], 0x28
call fcn.0059a8c0
lea ecx, [esp + 0x1b0]
call fcn.00404420
lea ecx, [esp + 0x1e8]
jmp 0x58c820
mov byte [esp + 0x13], 1
jmp 0x589f69
mov eax, dword [esp + 0x1d0]
mov edi, 0x10
cmp dword [esp + 0x1e4], edi
jae 0x58b2a1
lea eax, [esp + 0x1d0]
push str.LayerSetDrawMode
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b35b
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x589f88
lea ebx, [esp + 0x20]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x20]
cmp eax, 1
ja 0x589f88
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0xa0], eax
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b372
lea eax, [esp + 0x1d0]
push str.LayerSetColorMult
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b3e4
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
add ecx, 0x58
push ecx
push edx
mov edx, dword [esp + 0x1c]
call fcn.00589a80
test al, al
jne 0x58a5c8
jmp 0x589f88
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b3fb
lea eax, [esp + 0x1d0]
push str.LayerSetColorAdd
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b46d
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
add ecx, 0x68
push ecx
push edx
mov edx, dword [esp + 0x1c]
call fcn.00589a80
test al, al
jne 0x58a5c8
jmp 0x589f88
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b484
lea eax, [esp + 0x1d0]
push str.LayerSetAscent
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b535
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x589f88
lea ebx, [esp + 0x28]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xbc], ecx
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b54c
lea eax, [esp + 0x1d0]
push str.LayerSetAscentPadding
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b5fd
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x589f88
lea ebx, [esp + 0x28]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc0], ecx
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b614
lea eax, [esp + 0x1d0]
push str.LayerSetLineSpacingOffset
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b6c5
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x589f88
lea ebx, [esp + 0x28]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xcc], ecx
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b6dc
lea eax, [esp + 0x1d0]
push str.LayerSetOffset
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b7de
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
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.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00589930
test al, al
je 0x58b7c0
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1b0]
push ecx
push edx
push eax
call fcn.005b9c40
test al, al
je 0x58b7c0
mov ecx, dword [esp + 0x1b4]
cmp ecx, ebx
je 0x58b7c0
mov eax, dword [esp + 0x1b8]
sub eax, ecx
sar eax, 2
cmp eax, edi
jne 0x58b7c0
xor edi, edi
lea esi, [esp + 0x1b0]
call fcn.00541960
mov ecx, dword [eax]
mov ebx, dword [esp + 0x20]
mov edi, 1
mov dword [ebx + 0xa4], ecx
call fcn.00541960
mov edx, dword [eax]
mov dword [ebx + 0xa8], edx
mov byte [esp + 0x230], 0
call fcn.005139c0
jmp 0x589f7d
lea esi, [esp + 0x1b0]
mov byte [esp + 0x13], 1
mov byte [esp + 0x230], 0
call fcn.005139c0
jmp 0x589f7d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b7f5
lea eax, [esp + 0x1d0]
push str.LayerSetCharWidths
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58b973
mov eax, esi
call fcn.00541940
cmp eax, 4
jne 0x58c74d
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.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x58b94c
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58b94c
mov edi, 3
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
push ecx
call fcn.005b9c40
test al, al
je 0x58b94c
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x58b8be
xor esi, esi
jmp 0x58b8c7
mov esi, dword [esp + 0x50]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1b0]
call fcn.0051ae30
cmp eax, esi
jne 0x58b945
xor edi, edi
cmp eax, ebx
jbe 0x58b951
lea ecx, [ecx]
lea esi, [esp + 0x1b0]
call fcn.0051ae60
cmp dword [eax + 0x14], 1
jne 0x58b92b
lea esi, [esp + 0x48]
call fcn.00541960
push ebx
lea esi, [esp + 0x1b4]
mov dword [esp + 0x2c], eax
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
movzx edx, byte [eax]
mov ecx, dword [esp + 0x20]
push edx
call fcn.005892a0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [eax + 0x24], edx
jmp 0x58b930
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, 1
call fcn.0051ae30
cmp edi, eax
jb 0x58b8e0
jmp 0x58b951
mov byte [esp + 0x1f], 1
jmp 0x58b951
mov byte [esp + 0x13], 1
lea esi, [esp + 0x48]
call fcn.005139c0
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58b98a
lea eax, [esp + 0x1d0]
push str.LayerSetSpacing
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58ba70
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
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.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x58ba52
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov eax, dword [eax]
cmp byte [eax + 4], 0
jne 0x58ba52
lea ebx, [esp + 0x28]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x58ba52
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.005139c0
jmp 0x589f7d
lea esi, [esp + 0x1e8]
mov byte [esp + 0x13], 1
mov byte [esp + 0x230], 0
call fcn.005139c0
jmp 0x589f7d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58ba87
lea eax, [esp + 0x1d0]
push str.LayerSetImageMap
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58be54
mov eax, esi
call fcn.00541940
cmp eax, 4
jne 0x58c74d
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.005b87b0
mov edi, 1
mov byte [esp + 0x230], 0x34
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x58be22
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58be22
mov edi, 3
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x1e8]
call fcn.005b9c00
test al, al
je 0x58be22
mov eax, dword [esp + 0x1f4]
cmp eax, ebx
jne 0x58bb5e
xor esi, esi
jmp 0x58bb6a
mov esi, dword [esp + 0x1f8]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1b0]
call fcn.0051ae30
mov edx, eax
cmp edx, esi
jne 0x58be1b
mov esi, dword [esp + 0x38]
lea ecx, [esi + 0x78]
call fcn.0059a980
test eax, eax
je 0x58bde1
call fcn.0059a980
call fcn.00588a10
mov dword [esp + 0x3c], eax
call fcn.0059a980
call fcn.00588a20
xor edi, edi
cmp edx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jbe 0x58bd12
mov edi, edi
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.0051ae60
cmp dword [eax + 0x14], 1
jne 0x58bcdd
lea esi, [esp + 0x1f0]
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
push ecx
call fcn.005b9c40
test al, al
je 0x58bcdd
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x58bcdd
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 2
cmp eax, 4
jne 0x58bcdd
lea edi, [eax - 1]
lea esi, [esp + 0x48]
call fcn.00541960
mov edx, dword [eax]
mov edi, 2
mov dword [esp + 0x20], edx
call fcn.00541960
mov eax, dword [eax]
mov edi, 1
mov dword [esp + 0x18], eax
call fcn.00541960
mov ecx, dword [eax]
xor edi, edi
mov dword [esp + 0x44], ecx
call fcn.00541960
mov ebx, dword [eax]
test ebx, ebx
jl 0x58bd7b
mov eax, dword [esp + 0x44]
test eax, eax
jl 0x58bd7b
mov edx, dword [esp + 0x18]
add edx, ebx
cmp edx, dword [esp + 0x3c]
jg 0x58bd7b
mov ecx, dword [esp + 0x20]
add eax, ecx
cmp eax, dword [esp + 0x2c]
jg 0x58bd7b
push edi
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x1b4]
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
movzx edx, byte [eax]
mov ecx, dword [esp + 0x38]
push edx
call fcn.005892a0
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 0x58bce2
mov byte [esp + 0x13], 1
lea esi, [esp + 0x48]
mov byte [esp + 0x230], 0x34
call fcn.005139c0
add edi, 1
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x28], edi
call fcn.0051ae30
cmp edi, eax
jb 0x58bbc0
mov esi, dword [esp + 0x38]
mov dword [esi + 0xc8], ebx
mov eax, dword [esi + 0x50]
mov eax, dword [eax]
lea ebx, [esi + 0x4c]
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.0059bf20
test al, al
je 0x58be27
mov esi, edi
call fcn.0059bf40
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 0x58bd70
mov dword [ecx + 0xc8], eax
lea esi, [esp + 0x2c]
call fcn.0059eb80
jmp 0x58bd30
push str.Image_rectangle_out_of_bounds
lea ecx, [esp + 0x208]
call fcn.00404450
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.00404420
lea esi, [esp + 0x48]
call fcn.005139c0
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0x33
call fcn.005b8820
lea esi, [esp + 0x1b0]
call fcn.0051b050
jmp 0x58c825
push str.Layer_image_not_set
lea ecx, [esp + 0x208]
call fcn.00404450
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.00404420
jmp 0x58bdbc
mov byte [esp + 0x1f], 1
jmp 0x58be27
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0x33
call fcn.005b8820
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58be6b
lea eax, [esp + 0x1d0]
push str.LayerSetCharOffsets
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58c084
mov eax, esi
call fcn.00541940
cmp eax, 4
jne 0x58c74d
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.005b87b0
mov edi, 1
mov byte [esp + 0x230], 0x39
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x58c055
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
call fcn.005b98f0
test al, al
je 0x58c055
mov edi, 3
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x1e8]
call fcn.005b9c00
test al, al
je 0x58c055
mov eax, dword [esp + 0x1f4]
cmp eax, ebx
je 0x58bf3e
mov ebx, dword [esp + 0x1f8]
sub ebx, eax
sar ebx, 2
lea ecx, [esp + 0x48]
call fcn.0051ae30
cmp eax, ebx
jne 0x58c04e
xor ebx, ebx
test eax, eax
jbe 0x58c05a
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.0051ae60
cmp dword [eax + 0x14], 1
jne 0x58c027
lea esi, [esp + 0x1f0]
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1b0]
push edx
push eax
push ecx
call fcn.005b9c40
test al, al
je 0x58c027
mov ecx, dword [esp + 0x1b4]
test ecx, ecx
je 0x58c027
mov eax, dword [esp + 0x1b8]
sub eax, ecx
sar eax, 2
cmp eax, 2
jne 0x58c027
lea edi, [eax - 1]
lea esi, [esp + 0x1b0]
call fcn.00541960
mov edx, dword [eax]
xor edi, edi
mov dword [esp + 0x3c], edx
call fcn.00541960
mov eax, dword [eax]
push edi
mov edi, ebx
lea esi, [esp + 0x4c]
mov dword [esp + 0x24], eax
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
movzx ecx, byte [eax]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.005892a0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
jmp 0x58c02c
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1b0]
call fcn.005139c0
lea ecx, [esp + 0x48]
add ebx, 1
call fcn.0051ae30
cmp ebx, eax
jb 0x58bf60
jmp 0x58c05a
mov byte [esp + 0x1f], 1
jmp 0x58c05a
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x230], 0x38
call fcn.005b8820
lea esi, [esp + 0x48]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58c09b
lea eax, [esp + 0x1d0]
push str.LayerSetKerningPairs
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58c262
mov eax, esi
call fcn.00541940
cmp eax, 4
jne 0x58c74d
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.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00589930
test al, al
je 0x58c251
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58c251
mov edi, 3
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1e8]
push edx
push eax
push ecx
call fcn.005b9c40
test al, al
je 0x58c251
mov eax, dword [esp + 0x1ec]
cmp eax, ebx
jne 0x58c173
xor esi, esi
jmp 0x58c17f
mov esi, dword [esp + 0x1f0]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1b0]
call fcn.0051ae30
cmp eax, esi
jne 0x58c240
xor edi, edi
cmp eax, ebx
jbe 0x58c256
lea ecx, [ecx]
lea esi, [esp + 0x1b0]
call fcn.0051ae60
cmp dword [eax + 0x14], 2
jne 0x58c218
push 0
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
movzx edx, byte [eax]
mov ecx, dword [esp + 0x2c]
push edx
call fcn.005892a0
lea esi, [esp + 0x1e8]
mov ebx, eax
call fcn.00541960
push 1
lea esi, [esp + 0x1b4]
mov dword [esp + 0x40], eax
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
mov al, byte [eax]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
push ecx
add ebx, 0x18
mov dword [esp + 0x2c], edx
call fcn.0059b600
jmp 0x58c21d
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, 1
call fcn.0051ae30
cmp edi, eax
jb 0x58c1a0
lea esi, [esp + 0x1e8]
jmp 0x58b955
mov byte [esp + 0x1f], 1
lea esi, [esp + 0x1e8]
jmp 0x58b955
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1e8]
jmp 0x58b955
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58c279
lea eax, [esp + 0x1d0]
push str.LayerSetBaseOrder
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58c32a
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [eax]
cmp byte [ecx + 4], 0
jne 0x589f88
lea ebx, [esp + 0x3c]
call fcn.00541960
mov edx, dword [eax]
sub esp, 0x1c
add edx, 8
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.0041f160
mov esi, ebx
call fcn.005afd80
add esp, 0x1c
test al, al
je 0x589f88
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xd0], ecx
lea ecx, [esp + 0x1cc]
call fcn.00404420
mov al, 1
jmp 0x58c833
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58c341
lea eax, [esp + 0x1d0]
push str.LayerSetCharOrders
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58c4b5
mov eax, esi
call fcn.00541940
cmp eax, 4
jne 0x58c74d
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.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00589930
test al, al
je 0x58c251
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58c251
mov edi, 3
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1e8]
push edx
push eax
push ecx
call fcn.005b9c40
test al, al
je 0x58c251
mov eax, dword [esp + 0x1ec]
cmp eax, ebx
jne 0x58c419
xor esi, esi
jmp 0x58c425
mov esi, dword [esp + 0x1f0]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1b0]
call fcn.0051ae30
cmp eax, esi
jne 0x58c240
xor edi, edi
cmp eax, ebx
jbe 0x58c256
lea esi, [esp + 0x1b0]
call fcn.0051ae60
cmp dword [eax + 0x14], 1
jne 0x58c491
lea esi, [esp + 0x1e8]
call fcn.00541960
push ebx
lea esi, [esp + 0x1b4]
mov dword [esp + 0x40], eax
call fcn.0051ae60
mov ecx, eax
call fcn.0045db30
movzx edx, byte [eax]
mov ecx, dword [esp + 0x2c]
push edx
call fcn.005892a0
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov dword [eax + 0x28], edx
jmp 0x58c496
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1b0]
add edi, 1
call fcn.0051ae30
cmp edi, eax
jb 0x58c443
lea esi, [esp + 0x1e8]
jmp 0x58b955
cmp dword [esp + 0x1e4], edi
mov eax, dword [esp + 0x1d0]
jae 0x58c4cc
lea eax, [esp + 0x1d0]
push str.LayerSetExInfo
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58c6ab
mov eax, esi
call fcn.00541940
cmp eax, 4
jne 0x58c74d
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.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00589930
test al, al
je 0x58c681
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x1ec]
call fcn.005b98f0
test al, al
je 0x58c681
mov edi, 3
call fcn.00541960
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x1b4]
call fcn.005b98f0
test al, al
je 0x58c681
lea ecx, [esp + 0x1e8]
call fcn.0051ae30
lea ecx, [esp + 0x1b0]
mov esi, eax
call fcn.0051ae30
cmp esi, eax
jne 0x58c657
xor edi, edi
cmp esi, ebx
jbe 0x58c686
mov ebx, dword [esp + 0x2c]
add ebx, 4
jmp 0x58c5d0
lea esi, [esp + 0x1b0]
call fcn.0051ae60
push eax
lea esi, [esp + 0x1ec]
call fcn.0051ae60
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0059bf90
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
mov byte [esp + 0x23c], 0x41
call fcn.0059b770
lea esi, [esp + 0x84]
mov byte [esp + 0x230], 0x40
call fcn.004452e0
lea ecx, [esp + 0x1e8]
add edi, 1
call fcn.0051ae30
cmp edi, eax
jb 0x58c5d0
lea esi, [esp + 0x1b0]
call fcn.0051b050
lea esi, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
lea esi, [esp + 0x1b0]
mov byte [esp + 0x1f], 1
call fcn.0051b050
lea esi, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
mov byte [esp + 0x13], 1
lea esi, [esp + 0x1b0]
call fcn.0051b050
lea esi, [esp + 0x1e8]
mov byte [esp + 0x230], 0
call fcn.0051b050
jmp 0x589f7d
push str.LayerSetAlphaCorrection
lea ecx, [esp + 0x1d0]
call fcn.004042d0
push eax
call fcn.0061cccc
add esp, 8
test eax, eax
jne 0x58c7ed
mov eax, esi
call fcn.00541940
cmp eax, 3
jne 0x58c74d
lea edi, [eax - 2]
mov dword [esp + 0x20], ebx
call fcn.00541960
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00589930
test al, al
je 0x589f88
mov esi, dword [esp + 0x18]
mov edi, 2
call fcn.00541960
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005b9800
test al, al
je 0x589f88
cmp dword [esp + 0x20], ebx
mov eax, dword [esp + 0x2c]
setne dl
lea ecx, [esp + 0x1cc]
mov byte [eax + 0xd4], dl
call fcn.00404420
mov al, 1
jmp 0x58c833
mov edi, 0x10
push str.Invalid_Number_of_Parameters
lea ecx, [esp + 0x208]
call fcn.00404450
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 0x58c792
mov eax, dword [esp + 0x208]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x1e4], edi
jb 0x58c831
mov ecx, dword [esp + 0x1d0]
push ecx
call fcn.0061c19a
add esp, 4
jmp 0x58c831
cmp byte [esp + 0x1f], 0
je 0x58a5c8
push str.List_Size_Mismatch
lea ecx, [esp + 0x208]
call fcn.00404450
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 0x58c819
push str.Unknown_Command
lea ecx, [esp + 0x208]
call fcn.00404450
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.00404420
lea ecx, [esp + 0x1cc]
call fcn.00404420
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.0061efd1
mov esp, ebp
pop ebp
ret 4