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

Disassembly:
push 0xffffffffffffffff
push 0x47994e
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x1e4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1fc]
mov ebp, dword [esp + 0x1f4]
xor esi, esi
mov dword [esp + 0x3c], esi
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, dword [ebp + 0x1c]
jge 0x40a9e7
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x20]
jge 0x40a9e7
mov edx, dword [esp + 0x200]
mov eax, dword [ebp]
cmp dword [edx], esi
jne 0x40935d
cmp eax, 0x69
jne 0x4091ea
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00430a10
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x170
call fcn.00402560
mov esi, eax
add esp, 4
mov dword [esp + 0x70], esi
xor edx, edx
mov dword [esp + 0x1ec], edx
cmp esi, edx
je 0x40914a
mov edi, dword [esp + 0x20]
mov ecx, esi
call fcn.00411d50
mov dword [esi], vtable.ytBGNode.0
mov dword [esi + 0x16c], edi
xor edx, edx
jmp 0x40914c
xor esi, esi
mov dword [esp + 0x1ec], 0xffffffff
cmp esi, edx
jne 0x409165
mov eax, 4
jmp 0x40a9e9
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
call fcn.00406540
mov edx, dword [ebp + 4]
mov eax, dword [ebx + 0x18c]
imul edx, edx, 0x168
movzx ecx, byte [edx + eax + 0x29]
shl ecx, 8
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 2
cmp dword [esi + 0x158], eax
je 0x4091c1
or dword [esi + 8], ecx
cmp byte [esi + 0x122], 0
mov dword [esi + 0x158], eax
je 0x4091d3
or dword [esi + 8], ecx
mov ecx, dword [esp + 0x200]
mov byte [esi + 0x122], 0
mov dword [ecx], esi
mov edi, esi
jmp 0x409346
cmp eax, 0x6c
je 0x40a9e7
push 4
call fcn.0045bbe0
add esp, 4
mov dword [esp + 0x98], eax
cmp eax, esi
je 0x40920e
mov dword [eax], 1
mov byte [esp + 0xac], 1
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xa8], esi
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x1f0], 1
mov ecx, dword [ebp + 4]
push ebx
call fcn.00430cb0
cmp dword [esp + 0xa8], esi
je 0x40932f
cmp dword [ebp], 0x65
push 0x4f85e0
jne 0x4092ae
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x190
call fcn.00402560
add esp, 4
mov dword [esp + 0x70], eax
mov byte [esp + 0x1ec], 2
cmp eax, esi
je 0x4092e1
lea ecx, [esp + 0x98]
push ecx
push eax
call fcn.00406bd0
jmp 0x4092e3
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x190
call fcn.00402560
add esp, 4
mov dword [esp + 0x70], eax
mov byte [esp + 0x1ec], 3
cmp eax, esi
je 0x4092e1
lea edx, [esp + 0x98]
push edx
push eax
call fcn.00406d50
jmp 0x4092e3
xor eax, eax
mov ecx, dword [ebx + 8]
mov esi, eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x38], eax
xor edx, edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push eax
mov ecx, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
call fcn.00406540
mov ecx, dword [esp + 0x200]
mov dword [ecx], esi
mov eax, dword [ebp + 4]
mov ecx, ebx
mov edi, esi
call fcn.004315d0
push eax
mov ecx, esi
call fcn.00406600
push 0
mov ecx, esi
call fcn.004065e0
lea esi, [esp + 0x98]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.0040f210
test edi, edi
je 0x40a9e7
mov dword [edi + 0x168], 0x437c00
jmp 0x40a945
cmp eax, 0x7c
jl 0x40939b
mov edx, dword [0x4f85d0]
mov ecx, dword [edx + 0x28]
mov eax, dword [ecx + eax*4 - 0x1f0]
mov edx, dword [eax]
push ebx
mov ecx, eax
mov eax, dword [edx + 4]
push ebp
call eax
mov edi, eax
cmp edi, esi
je 0x40a9e7
mov ecx, dword [esp + 0x200]
mov ecx, dword [ecx]
push edi
call fcn.004130e0
jmp 0x40a945
lea ecx, [eax - 0x67]
cmp ecx, 0x13
ja case.0x4093b4.112
movzx edx, byte [ecx + 0x40aa2c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp dword [edx*4 + 0x40aa04]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 4]
push ebx
mov dword [esp + 0x4c], eax
call fcn.00430a10
cmp dword [ebp], 0x67
push 0x4f85e0
jne 0x409423
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x180
call fcn.00402560
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1ec], 4
test esi, esi
je 0x40941f
mov eax, dword [esp + 0x28]
lea edi, [ebp + 0x24]
push eax
call fcn.00406e30
mov dword [esi], vtable.ytColorCircleNode.0
jmp 0x40945e
xor esi, esi
jmp 0x40945e
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x180
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 5
test eax, eax
je 0x40945a
mov ecx, dword [esp + 0x28]
lea edi, [ebp + 0x24]
push ecx
mov esi, eax
call fcn.00406e30
jmp 0x40945c
xor eax, eax
mov esi, eax
mov dword [esp + 0x1ec], 0xffffffff
test esi, esi
je 0x40915b
cmp dword [ebp], 0x6a
jne 0x40957c
mov eax, dword [ebp + 0xc]
shr eax, 1
cmp eax, 2
jae 0x4094ae
fld dword [0x48bf74]
mov eax, 1
mov ecx, eax
push ecx
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [0x4901c8]
fstp dword [esp]
call fcn.004168a0
jmp 0x40957c
cmp eax, 5
je 0x4094d6
mov edx, dword [esp + 0x1f8]
mov eax, dword [edx]
test eax, eax
je 0x4094c5
add eax, 4
jmp 0x4094c7
xor eax, eax
push str.Shadows_need_4_arguments
mov ecx, eax
call fcn.00407a20
add esp, 4
mov eax, dword [ebp + 8]
add eax, 4
mov eax, dword [eax]
test eax, eax
je 0x4094e7
add eax, 4
jmp 0x4094e9
xor eax, eax
push eax
call fcn.0045d583
fstp dword [esp + 0x28]
mov eax, dword [ebp + 8]
add eax, 8
mov eax, dword [eax]
add esp, 4
test eax, eax
je 0x409507
add eax, 4
jmp 0x409509
xor eax, eax
push eax
call fcn.0045d583
add esp, 4
call fcn.0045c1c0
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, 0xc
mov eax, dword [eax]
test eax, eax
je 0x40952a
add eax, 4
jmp 0x40952c
xor eax, eax
push eax
call fcn.0045d583
add esp, 4
call fcn.0045c1c0
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 0x10
mov eax, dword [eax]
test eax, eax
je 0x40954d
add eax, 4
jmp 0x40954f
xor eax, eax
push eax
call fcn.0045d583
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 4
push edi
push ebx
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.004168a0
mov ebx, dword [esp + 0x1fc]
mov eax, dword [ebp + 4]
mov ecx, ebx
call fcn.004315d0
push eax
mov ecx, esi
call fcn.00406600
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.00412f60
test dword [ebp + 0xc], 0xfffffffe
je 0x4095e2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test eax, eax
je 0x4095b6
add eax, 4
jmp 0x4095b8
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
push 0x48cbc0
push eax
call fcn.0045f067
add esp, 0xc
lea edx, [esp + 0x24]
call fcn.0042fac0
mov edx, dword [esp + 0x24]
or dword [esi + 8], 2
mov dword [esi + 0x170], edx
mov eax, dword [esp + 0x200]
mov ecx, dword [eax]
push esi
call fcn.004130e0
mov edi, esi
jmp 0x40a945
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 4]
push ebx
mov dword [esp + 0x34], edx
call fcn.00430a10
mov eax, dword [ebp]
cmp eax, 0x6c
jne 0x40977b
test dword [ebp + 0xc], 0xfffffffe
lea edi, [eax - 0x6b]
push 0x4f85e0
je 0x4096d1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1e0
call fcn.00402560
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1ec], 6
test esi, esi
je 0x4096ab
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc4]
call fcn.00401160
mov byte [esp + 0x1ec], 7
mov edx, dword [ebp + 0x24]
push 0xc
push 0x48ca58
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x30]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x5c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x5c], edi
call fcn.0041e360
jmp 0x4096ad
xor eax, eax
mov dword [esp + 0x1ec], 0xffffffff
test byte [esp + 0x3c], 1
mov esi, eax
je 0x409764
lea ecx, [esp + 0xc0]
jmp 0x40975f
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1e0
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 9
test eax, eax
je 0x409745
mov dword [esp + 0x28], 0
mov byte [esp + 0x1ec], 0xa
mov ecx, dword [ebp + 0x24]
push 0xc
push 0x48ca58
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [ebp + 0x30]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x5c]
push edx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
mov dword [esp + 0x5c], 2
call fcn.0041e360
jmp 0x409747
xor eax, eax
mov dword [esp + 0x1ec], 0xffffffff
test byte [esp + 0x3c], 2
mov esi, eax
je 0x409764
lea ecx, [esp + 0x28]
call fcn.00401080
test esi, esi
je 0x40915b
or dword [esi + 8], edi
mov byte [esi + 0x1c5], 1
jmp 0x4098e6
cmp eax, 0x6d
jne 0x4097f8
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1e4
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 0xc
test eax, eax
je 0x4097e4
mov edx, dword [ebp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x30]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x54]
push ecx
push eax
call fcn.00437f40
mov dword [esp + 0x1ec], 0xffffffff
mov esi, eax
jmp 0x4098e6
xor eax, eax
mov dword [esp + 0x1ec], 0xffffffff
mov esi, eax
jmp 0x4098e6
test dword [ebp + 0xc], 0xfffffffe
jne 0x409841
mov edx, dword [esp + 0x1f8]
mov eax, dword [edx]
test eax, eax
je 0x409828
lea ecx, [eax + 4]
push str.Statics_must_have_one_argument__contents_
call fcn.00407a20
add esp, 4
mov eax, 4
jmp 0x40a9e9
xor ecx, ecx
push str.Statics_must_have_one_argument__contents_
call fcn.00407a20
add esp, 4
mov eax, 4
jmp 0x40a9e9
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1e0
call fcn.00402560
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1ec], 0xd
test eax, eax
je 0x4098c4
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc0]
call fcn.00401160
push 0xc
push 0x48ca58
mov byte [esp + 0x1f4], 0xe
or edx, 0xffffffff
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
or esi, edx
mov dword [ecx + 4], esi
or edi, edx
mov dword [ecx + 8], edi
or ebx, edx
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esp + 0x5c], 4
call fcn.0041e360
mov ebx, dword [esp + 0x1fc]
jmp 0x4098c6
xor eax, eax
mov dword [esp + 0x1ec], 0xffffffff
test byte [esp + 0x3c], 4
mov esi, eax
je 0x4098e6
lea ecx, [esp + 0xbc]
call fcn.00401080
test esi, esi
je 0x40915b
mov eax, dword [ebp + 4]
mov ecx, ebx
call fcn.004315d0
push eax
mov ecx, esi
call fcn.00406600
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.00412f60
mov ecx, dword [esp + 0x200]
mov ecx, dword [ecx]
push esi
call fcn.004130e0
mov edi, esi
jmp 0x40a945
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x16c
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 0x10
test eax, eax
je 0x40995b
mov ecx, eax
call fcn.00411d50
jmp 0x40995d
xor eax, eax
mov dword [esp + 0x1ec], 0xffffffff
mov dword [esp + 0x24], eax
test eax, eax
je 0x40915b
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], edx
lea edx, [ebp + 0x24]
mov dword [esp + 0x2c], ecx
push edx
mov ecx, eax
call fcn.00406540
fild dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
or dword [eax + 8], 1
mov ecx, dword [esp + 0x200]
fstp dword [esp + 0x28]
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x28]
fadd dword [eax + 0x78]
fstp dword [eax + 0x78]
fld dword [esp + 0x20]
fadd dword [eax + 0x7c]
fstp dword [eax + 0x7c]
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx]
push eax
call fcn.004130e0
test dword [ebp + 0xc], 0xfffffffe
je 0x409a0d
mov eax, dword [ebp + 8]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0040b1a0
add esp, 8
test eax, eax
je 0x409a0d
mov eax, dword [esp + 0x1f8]
mov eax, dword [eax]
test eax, eax
je 0x4099fc
add eax, 4
jmp 0x4099fe
xor eax, eax
push str.Cant_load_child_PSD_file.
mov ecx, eax
call fcn.00407a20
add esp, 4
mov edi, dword [esp + 0x24]
jmp 0x40a945
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 4]
push ebx
call fcn.00430a10
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1b8
call fcn.00402560
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1ec], 0x11
test eax, eax
je 0x409a5e
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.004383c0
mov esi, eax
jmp 0x409a60
xor esi, esi
mov dword [esp + 0x1ec], 0xffffffff
test esi, esi
je 0x40915b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
lea edx, [ebp + 0x24]
mov dword [esp + 0x2c], ecx
push edx
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.00406540
fild dword [esp + 0x2c]
or dword [esi + 8], 1
mov ecx, ebx
fstp dword [esp + 0x28]
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x28]
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
fld dword [esp + 0x20]
fadd dword [esi + 0x7c]
fstp dword [esi + 0x7c]
mov eax, dword [ebp + 4]
call fcn.004315d0
push eax
mov ecx, esi
call fcn.00406600
mov eax, dword [esp + 0x200]
mov ecx, dword [eax]
push esi
call fcn.004130e0
mov edi, esi
jmp 0x40a945
test dword [ebp + 0xc], 0xfffffffe
jne 0x409b08
mov ecx, dword [esp + 0x1f8]
mov eax, dword [ecx]
test eax, eax
je 0x409af7
add eax, 4
jmp 0x409af9
xor eax, eax
push str.Need_argument_for_decrect__filename_layername_
mov ecx, eax
call fcn.00407a20
add esp, 4
push 4
call fcn.0045bbe0
xor esi, esi
add esp, 4
mov dword [esp + 0x74], eax
cmp eax, esi
je 0x409b22
mov dword [eax], 1
mov byte [esp + 0x88], 1
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x1ec], 0x12
mov edx, dword [ebp + 8]
push edx
lea ecx, [esp + 0x78]
call fcn.00408a10
add esp, 4
cmp dword [esp + 0x84], esi
je 0x409c01
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x230
call fcn.00402560
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x1ec], 0x13
test esi, esi
je 0x409bba
lea eax, [esp + 0x74]
push eax
push esi
call fcn.00406fc0
mov dword [esi], vtable.ytDecRectNode.0
jmp 0x409bbc
xor esi, esi
mov ecx, dword [esp + 0x200]
mov byte [esp + 0x1ec], 0x12
mov ecx, dword [ecx]
push esi
call fcn.004130e0
lea edx, [ebp + 0x24]
push edx
mov ecx, esi
mov edi, esi
call fcn.00406540
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00412f60
mov eax, dword [ebp + 4]
mov ecx, ebx
call fcn.004315d0
push eax
mov ecx, esi
call fcn.00406600
lea esi, [esp + 0x74]
jmp 0x40a935
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x16c
call fcn.00402560
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1ec], 0x14
test edi, edi
je 0x409c46
mov ecx, edi
call fcn.00411d50
mov dword [edi], vtable.ytButtContainer.0
jmp 0x409c48
xor edi, edi
mov dword [esp + 0x1ec], 0xffffffff
test edi, edi
je 0x409c66
mov eax, dword [esp + 0x200]
mov ecx, dword [eax]
push edi
call fcn.004130e0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
or dword [edi + 8], 1
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
lea eax, [ebp + 0x24]
fstp dword [esp + 0x20]
push eax
fild dword [esp + 0x1c]
mov ecx, edi
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fadd dword [edi + 0x78]
fstp dword [edi + 0x78]
fld dword [esp + 0x1c]
fadd dword [edi + 0x7c]
fstp dword [edi + 0x7c]
call fcn.00406540
jmp 0x40a945
push 0x4f85e0
cmp eax, 0x68
jne 0x409d0b
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x2e8
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 0x15
test eax, eax
je 0x409cf6
mov esi, eax
call fcn.00407590
mov esi, eax
mov dword [esp + 0x1ec], 0xffffffff
mov dword [esp + 0x24], esi
jmp 0x409d4c
xor eax, eax
mov esi, eax
mov dword [esp + 0x1ec], 0xffffffff
mov dword [esp + 0x24], esi
jmp 0x409d4c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x2c8
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 0x16
test eax, eax
je 0x409d39
push eax
call fcn.0042b840
jmp 0x409d3b
xor eax, eax
mov dword [esp + 0x1ec], 0xffffffff
mov esi, eax
mov dword [esp + 0x24], eax
test esi, esi
je 0x40915b
mov eax, dword [ebp]
cmp eax, 0x77
je 0x409d61
cmp eax, 0x76
jne 0x409d75
cmp byte [esi + 0x24a], 1
je 0x409d75
or dword [esi + 8], 7
mov byte [esi + 0x24a], 1
mov eax, dword [ebp]
cmp eax, 0x75
je 0x409d82
cmp eax, 0x76
jne 0x409db5
mov ecx, dword [ebp + 4]
push ebx
lea eax, [esp + 0x110]
call fcn.00431580
mov ecx, dword [eax]
mov dword [esi + 0xa4], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xa8], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0xac], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xb0], edx
mov eax, dword [esp + 0x200]
mov ecx, dword [eax]
push esi
call fcn.004130e0
test dword [ebp + 0xc], 0xfffffffe
mov dword [esp + 0x44], esi
je 0x409dda
mov ecx, dword [ebp + 8]
push esi
call fcn.0042bdb0
push fcn.0040f2a0
push 0x40aa40
push 4
push 0x24
lea ecx, [esp + 0x15c]
push ecx
call fcn.0045c76b
mov dword [esp + 0x1ec], 0x17
mov edx, dword [ebp + 0xc]
xor eax, eax
and edx, 0xfffffffe
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea ebx, [eax + 1]
cmp edx, 2
jbe 0x409fb8
cmp ebx, 5
jae 0x409fb8
push 4
call fcn.0045bbe0
add esp, 4
mov dword [esp + 0xc4], eax
test eax, eax
je 0x409e48
mov dword [eax], 1
xor eax, eax
mov byte [esp + 0xd8], 1
mov dword [esp + 0xe0], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xd4], eax
lea edi, [ebx + ebx*8]
lea edi, [esp + edi*4 + 0x128]
push edi
lea eax, [esp + 0xc8]
mov byte [esp + 0x1f0], 0x18
call fcn.0040f310
lea esi, [esp + 0xc4]
mov byte [esp + 0x1ec], 0x17
call fcn.0040f210
cmp ebx, 1
jne 0x409ee2
push 0x48cc3c
lea ecx, [esp + 0x74]
call fcn.004010d0
mov ecx, dword [ebp + 8]
or dword [esp + 0x3c], 8
push eax
add ecx, 4
call fcn.004064b0
mov byte [esp + 0x1f], bl
test al, al
jne 0x409ee7
mov byte [esp + 0x1f], 0
test byte [esp + 0x3c], 8
je 0x409efc
and dword [esp + 0x3c], 0xfffffff7
lea ecx, [esp + 0x70]
call fcn.00401080
cmp byte [esp + 0x1f], 0
je 0x409f16
mov eax, dword [esp + 0x1fc]
mov ecx, dword [ebp + 4]
push edi
push eax
call fcn.00430cb0
jmp 0x409f2b
mov ecx, dword [ebp + 8]
lea eax, [ecx + ebx*4]
push eax
mov ecx, edi
call fcn.00408a10
add esp, 4
test eax, eax
jne 0x409f8a
lea ecx, [esp + 0x2c]
call fcn.004046a0
mov ecx, edi
test al, al
je 0x409f63
lea eax, [esp + 0x13c]
call fcn.004064e0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jmp 0x409f7a
lea eax, [esp + 0x12c]
call fcn.004064e0
mov ecx, eax
lea eax, [esp + 0x2c]
call fcn.00406430
mov ecx, dword [ebp + 0xc]
inc ebx
shr ecx, 1
cmp ebx, ecx
jb 0x409e24
jmp 0x409fb8
mov edx, dword [ebp + 8]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x409f99
lea edx, [eax + 4]
jmp 0x409f9b
xor edx, edx
mov eax, dword [esp + 0x1f8]
mov eax, dword [eax]
test eax, eax
je 0x409fad
lea ecx, [eax + 4]
jmp 0x409faf
xor ecx, ecx
push edx
call fcn.00407a20
add esp, 4
lea ecx, [ebx - 1]
test ecx, ecx
jbe 0x40a0ee
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
lea edi, [esp + 0x168]
mov esi, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
mov ebx, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ecx
jmp 0x409ff4
mov esi, dword [esp + 0x18]
push 4
call fcn.0045bbe0
xor ecx, ecx
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, ecx
je 0x40a00e
mov dword [eax], 1
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x60], 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x6c], ecx
cmp ebx, ecx
je 0x40a054
cmp esi, ecx
je 0x40a054
lea esi, [esp + 0x4c]
call fcn.0040f4f0
test eax, eax
je 0x40a058
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
jmp 0x40a058
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x1ec], 0x19
cmp dword [esp + 0x5c], 0
je 0x40a0cf
mov ecx, dword [edi - 4]
mov eax, dword [edi]
sub ecx, dword [esp + 0x2c]
sub eax, dword [esp + 0x30]
mov dword [edi - 4], ecx
or ecx, 0xffffffff
sub esp, 0x10
mov dword [edi], eax
mov eax, esp
mov dword [eax], ecx
or edx, ecx
or esi, ecx
or ebx, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
lea ecx, [esp + 0x5c]
mov dword [eax + 0xc], ebx
call fcn.0040f350
or ecx, 0xffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
or edx, ecx
or ebx, ecx
mov dword [eax + 4], edx
or ecx, ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x5c]
lea esi, [edi - 0x1c]
push ecx
call fcn.0040f9b0
push esi
lea eax, [esp + 0x50]
call fcn.0040f310
mov ebx, dword [esp + 0x20]
lea esi, [esp + 0x4c]
mov byte [esp + 0x1ec], 0x17
call fcn.0040f210
add edi, 0x24
sub dword [esp + 0x28], 1
jne 0x409ff0
xor ebx, ebx
cmp dword [esp + 0x15c], ebx
je 0x40a18d
mov edi, dword [esp + 0x1fc]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x18]
push edx
push edi
call fcn.00430a10
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x288]
mov dword [esi + 0x27c], ecx
mov dword [esi + 0x280], ecx
cmp eax, ebx
je 0x40a145
cmp dword [eax + 0x16c], ecx
je 0x40a145
mov dword [eax + 0x16c], ecx
mov dword [eax + 8], 2
lea eax, [esp + 0x1b8]
push eax
lea ecx, [esp + 0x198]
push ecx
lea edx, [esp + 0x178]
push edx
push esi
lea eax, [esp + 0x15c]
call fcn.0042bcb0
mov ecx, dword [ebp + 4]
push edi
lea eax, [esp + 0x120]
call fcn.00431580
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00412f60
jmp 0x40a400
mov eax, dword [ebp]
cmp eax, 0x75
je 0x40a400
cmp eax, 0x76
je 0x40a400
push 4
call fcn.0045bbe0
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, ebx
je 0x40a1ba
mov dword [eax], 1
mov byte [esp + 0x60], 1
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x5c], ebx
mov esi, dword [esp + 0x1fc]
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x1f0], 0x1a
mov ecx, dword [ebp + 4]
push esi
call fcn.00430cb0
cmp dword [esp + 0x5c], ebx
je 0x40a3ef
mov eax, dword [ebp + 4]
mov ecx, esi
call fcn.004315d0
mov esi, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.00406600
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push ecx
push eax
mov ecx, esi
call fcn.00412f60
push 4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0045bbe0
add esp, 4
mov dword [esp + 0x74], eax
cmp eax, ebx
je 0x40a249
mov dword [eax], 1
mov byte [esp + 0x88], 1
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x84], ebx
mov byte [esp + 0x1ec], 0x1b
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ebx
lea edi, [esp + 0x30]
lea eax, [esp + 0x9c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call fcn.0040f180
or ecx, 0xffffffff
sub esp, 0x10
mov eax, esp
mov byte [esp + 0x1fc], 0x1c
mov dword [eax], ecx
or edx, ecx
or esi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
or edi, ecx
mov dword [eax + 0xc], edi
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x60]
call fcn.0040f9b0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ebx
lea edi, [esp + 0x30]
lea eax, [esp + 0xec]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call fcn.0040f180
or ecx, 0xffffffff
sub esp, 0x10
mov eax, esp
mov byte [esp + 0x1fc], 0x1d
mov dword [eax], ecx
or edx, ecx
or esi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
or edi, ecx
mov dword [eax + 0xc], edi
lea eax, [esp + 0xf8]
push eax
lea esi, [esp + 0x60]
call fcn.0040f9b0
fld dword [0x490158]
push 1
push ecx
lea ecx, [esp + 0xf0]
fstp dword [esp]
push ecx
call fcn.00459860
or ecx, 0xffffffff
push ecx
mov eax, esp
or edx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
or esi, ecx
or edi, ecx
lea edx, [esp + 0xa8]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
push edx
call fcn.0040f480
fld dword [0x490348]
push 1
push ecx
lea eax, [esp + 0xa0]
fstp dword [esp]
push eax
call fcn.00459860
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0xa0]
push eax
push ecx
lea eax, [esp + 0x5c]
call fcn.0042bcb0
lea esi, [esp + 0xe8]
mov byte [esp + 0x1ec], 0x1c
call fcn.0040f210
lea esi, [esp + 0x98]
mov byte [esp + 0x1ec], 0x1b
call fcn.0040f210
lea esi, [esp + 0x74]
mov byte [esp + 0x1ec], 0x1a
call fcn.0040f210
lea esi, [esp + 0x4c]
mov byte [esp + 0x1ec], 0x17
call fcn.0040f210
push fcn.0040f2a0
push 4
push 0x24
lea edx, [esp + 0x158]
push edx
mov dword [esp + 0x1fc], 0xffffffff
call fcn.0045c6d8
mov edi, dword [esp + 0x44]
jmp 0x40a945
push 0x4f85e0
call esi
push 0x1e8
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 0x1e
test eax, eax
je 0x40a45b
push eax
call fcn.00406ae0
mov edx, eax
jmp 0x40a45d
xor edx, edx
mov dword [esp + 0x1ec], 0xffffffff
test edx, edx
je case.0x4093b4.107
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
mov ecx, edx
call fcn.00412f60
mov eax, dword [esp + 0x200]
mov ecx, dword [eax]
push edx
call fcn.004130e0
cmp dword [ebp], 0x6f
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x2c], ecx
je 0x40a4ed
push 0x4f85e0
call esi
push 0x194
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 0x1f
test eax, eax
je 0x40a65c
mov edx, dword [ebp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x30]
mov esi, eax
mov dword [ecx + 0xc], edx
call fcn.00417d10
jmp 0x40a65e
mov eax, dword [ebp + 0xc]
shr eax, 1
cmp eax, 4
jne 0x40a5dd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40a509
add eax, 4
jmp 0x40a50b
xor eax, eax
push eax
call fcn.0045d583
fstp dword [esp + 0x24]
mov eax, dword [ebp + 8]
add eax, 4
mov eax, dword [eax]
add esp, 4
test eax, eax
je 0x40a529
add eax, 4
jmp 0x40a52b
xor eax, eax
push eax
call fcn.0045c7e6
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 8
mov eax, dword [eax]
add esp, 4
test eax, eax
je 0x40a547
add eax, 4
jmp 0x40a549
xor eax, eax
push eax
call fcn.0045c7e6
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xc
mov eax, dword [eax]
add esp, 4
test eax, eax
je 0x40a565
add eax, 4
jmp 0x40a567
xor eax, eax
push eax
call fcn.0045d583
fstp dword [esp + 0x1c]
add esp, 4
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1f0
call fcn.00402560
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x1ec], 0x20
test eax, eax
je 0x40a65c
mov edx, dword [ebp + 0x24]
fld dword [esp + 0x18]
push esi
push edi
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x30]
sub esp, 8
mov dword [ecx + 0xc], edx
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.00418010
jmp 0x40a65e
test eax, eax
je 0x40a5f0
push 0
mov ecx, str.Shadows_require_4_arguments__radius__xoffset__yoffset__opacity_
call fcn.00407a20
add esp, 4
push 0x4f85e0
call esi
push 0x1f0
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1ec], 0x21
test eax, eax
je 0x40a65c
fld dword [0x490344]
mov edx, 4
push edx
mov edx, dword [ebp + 0x24]
mov ecx, 3
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x30]
sub esp, 8
mov dword [ecx + 0xc], edx
fstp dword [esp + 4]
fld dword [0x490340]
fstp dword [esp]
call fcn.00418010
jmp 0x40a65e
xor eax, eax
mov edi, eax
mov dword [esp + 0x1ec], 0xffffffff
test edi, edi
je 0x40915b
mov eax, dword [esp + 0x2c]
push ebx
push eax
mov ecx, edi
call fcn.00412f60
mov ecx, dword [esp + 0x200]
mov ecx, dword [ecx]
push edi
call fcn.004130e0
cmp dword [ebp], 0x79
jne 0x40a945
mov edx, dword [edi]
mov eax, dword [edx + 0x64]
push 0
mov ecx, edi
call eax
jmp 0x40a945
cmp eax, 0x65
sete bl
cmp eax, 0x66
sete byte [esp + 0x1f]
cmp eax, 0x74
push 4
sete byte [esp + 0x4f]
call fcn.0045bbe0
xor esi, esi
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, esi
je 0x40a6d9
mov dword [eax], 1
mov byte [esp + 0x60], 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1ec], 0x22
test bl, bl
jne 0x40a726
cmp byte [esp + 0x1f], bl
jne 0x40a726
mov edx, dword [esp + 0x1fc]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 4]
push edx
call fcn.00430cb0
jmp 0x40a78c
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
cmp eax, 2
je 0x40a759
push 0
mov ecx, str.This_bitmap_widget_must_reference_a_layer__target_.
call fcn.00407a20
add esp, 4
lea esi, [esp + 0x4c]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.0040f210
jmp 0x40a9e7
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x50]
call fcn.00408a10
add esp, 4
cmp dword [esp + 0x5c], esi
jne 0x40a798
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40a77b
add eax, 4
jmp 0x40a77d
xor eax, eax
push str.Bitmap_not_loaded.
mov ecx, eax
call fcn.00407a20
add esp, 4
cmp dword [esp + 0x5c], esi
je 0x40a931
xor esi, esi
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push 0x4f85e0
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test bl, bl
je 0x40a7fb
push 0x190
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x1ec], 0x23
cmp eax, esi
je 0x40a7df
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.00406bd0
jmp 0x40a7e1
xor eax, eax
lea edx, [ebp + 0x24]
push edx
mov ecx, eax
mov byte [esp + 0x1f0], 0x22
mov esi, eax
call fcn.00406540
jmp 0x40a8ee
cmp byte [esp + 0x4b], 0
je 0x40a845
push 0x708
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x1ec], 0x24
cmp eax, esi
je 0x40a834
push eax
call fcn.00407230
mov byte [esp + 0x1ec], 0x22
mov esi, eax
jmp 0x40a8ee
xor eax, eax
mov byte [esp + 0x1ec], 0x22
mov esi, eax
jmp 0x40a8ee
push 0x230
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x1ec], 0x25
cmp eax, esi
je 0x40a871
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.00406fc0
mov ecx, eax
jmp 0x40a873
xor ecx, ecx
push 0
mov byte [esp + 0x1f0], 0x22
mov esi, ecx
call fcn.00414250
cmp byte [esp + 0x1f], 0
je 0x40a8ee
mov edx, dword [ebp + 0x20]
sub edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fild dword [esp + 0x58]
test eax, eax
jge 0x40a8ab
fadd dword [0x490020]
fdivp st(1)
mov edx, dword [ebp + 0x1c]
sub edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x54]
sub esp, 8
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fild dword [esp + 0x5c]
test eax, eax
jge 0x40a8dc
fadd dword [0x490020]
fdivp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.00413000
mov ecx, dword [esp + 0x200]
mov ecx, dword [ecx]
push esi
call fcn.004130e0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x1fc]
mov edi, esi
call fcn.004315d0
push eax
mov ecx, esi
call fcn.00406600
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.00412f60
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea esi, [esp + 0x4c]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.0040f210
test edi, edi
je 0x40a9e7
mov ecx, dword [esp + 0x204]
add ebp, 0x10
push ebp
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00408040
add esp, 0xc
lea ecx, [esp + 0x3c]
mov edx, edi
mov dword [esp + 0x1ec], 0x26
call fcn.0040e310
test eax, eax
je 0x40a99c
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40a98d
lea ecx, [eax + 4]
jmp 0x40a98f
xor ecx, ecx
push str.Collision_found___layer_object_names_must_be_unique_
call fcn.00407a20
add esp, 4
push edi
lea edi, [esp + 0x40]
call fcn.0040aa80
mov dword [esp + 0x1f0], 0xffffffff
mov ecx, dword [esp + 0x40]
add esp, 4
test ecx, ecx
je 0x40a9e7
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x40a9da
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x3c]
and eax, 0xff
test eax, eax
jne 0x40a9e7
push ecx
call fcn.00402770
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1dc
ret