Function at 0x10028e62
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007442d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
jmp 0x10028e9d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x10029cce
mov dword [ebp - 0x24], 0xddc85f70
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x198], 0xffffffff
push 3
lea ecx, [ebp - 0x1b0]
call fcn.100157dc
and dword [ebp - 4], 0
push 2
lea ecx, [ebp - 0x1c8]
call fcn.100157dc
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
jmp 0x10028ef5
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x10028f0b
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x18c], 0
jmp 0x10028eee
mov dword [ebp - 0x10], 0
jmp 0x10028f1b
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10028f34
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1b0]
call fcn.1001587a
or dword [eax], 0xffffffff
jmp 0x10028f14
mov dword [ebp - 0x10], 0
jmp 0x10028f44
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10028f60
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c8]
call fcn.1001587a
mov dword [eax], 0x9639
jmp 0x10028f3d
mov dword [ebp - 0x24], 0xb
jmp 0x10028f70
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 4
jg 0x10028fb0
mov dword [ebp - 0x68], 0
jmp 0x10028f86
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 1
jge 0x10028f9c
mov eax, dword [ebp - 0x68]
mov dword [ebp + eax*4 - 0x158], 0x58d32ffa
jmp 0x10028f7f
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x158], 0
je 0x10028fae
jmp 0x10028fb0
jmp 0x10028f69
mov dword [ebp - 0x24], 0
jmp 0x10028fc0
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xfffffff5
je 0x1002935f
mov dword [ebp - 0x44], 0xe6d058a8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0xfffffff8
mov dword [ebp - 0x170], 2
mov dword [ebp - 0x54], 0
jmp 0x10028ff9
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 1
jge 0x1002900f
mov eax, dword [ebp - 0x54]
mov dword [ebp + eax*4 - 0x20c], 1
jmp 0x10028ff2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x3c], 0
jmp 0x10029025
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xfffffff6
jg 0x1002935a
mov dword [ebp - 0x190], 0xd4595a2e
mov dword [ebp - 0x94], 0xf7762406
mov dword [ebp - 0x6c], 9
mov dword [ebp - 0xc4], 0xe6a83b1d
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1ec], eax
mov eax, 0xab8d
cmp eax, 0x1210
je 0x10029075
mov dword [ebp - 0xa8], 1
jmp 0x1002907c
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0xa8], eax
jg 0x10029093
mov dword [ebp - 0xac], 1
jmp 0x1002909a
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x204], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x18c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffff
jb 0x100290e6
mov dword [ebp - 0x8c], 1
jmp 0x100290ed
and dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0xdfda
jne 0x10029105
mov dword [ebp - 0x128], 1
jmp 0x1002910c
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x128]
add eax, 0x56fe18bd
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 1
jne 0x10029132
mov dword [ebp - 0x130], 1
jmp 0x10029139
and dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x130], eax
jg 0x10029150
mov dword [ebp - 0x9c], 1
jmp 0x10029157
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x100291cb
mov dword [ebp - 0x1d8], 0xfffffffc
mov dword [ebp - 0x214], 0xfffffff9
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x1e0], 0x44f8a3d3
mov dword [ebp - 0x200], 0xb1dcede6
mov dword [ebp - 0x1e8], 0
push 1
lea ecx, [ebp - 0x1c8]
call fcn.1001587a
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x138]
mov dword [ecx], eax
jmp 0x10029355
mov dword [ebp - 0x74], 0x7e410f71
cmp dword [ebp - 0xc4], 0
je 0x100291e0
jmp 0x1002935a
cmp dword [ebp - 0x6c], 4
je 0x100291f2
mov dword [ebp - 0x13c], 1
jmp 0x100291f9
and dword [ebp - 0x13c], 0
push 8
pop eax
test eax, eax
je 0x10029287
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x40], eax
jg 0x1002921e
mov dword [ebp - 0xa4], 1
jmp 0x10029225
and dword [ebp - 0xa4], 0
cmp dword [ebp - 0xa4], 0xd979
jge 0x10029240
cmp dword [ebp - 0x40], 0
jne 0x10029240
and dword [ebp - 0x140], 0
jmp 0x1002924a
mov dword [ebp - 0x140], 1
mov eax, dword [ebp - 0x140]
sub eax, dword [ebp - 0x190]
cmp eax, 0x202d
je 0x10029269
mov dword [ebp - 0x148], 1
jmp 0x10029270
and dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x148], eax
jl 0x10029287
mov dword [ebp - 0xb4], 1
jmp 0x1002928e
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0xb4]
cmp eax, 0x460ee42a
jne 0x100292ad
mov dword [ebp - 0x104], 1
jmp 0x100292b4
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x104]
jg 0x100292cb
mov dword [ebp - 0xbc], 1
jmp 0x100292d2
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0x170]
cmp dword [ebp - 0xbc], eax
jge 0x100292ec
mov dword [ebp - 0x12c], 1
jmp 0x100292f3
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x12c], eax
jne 0x1002930a
mov dword [ebp - 0x168], 1
jmp 0x10029311
and dword [ebp - 0x168], 0
push 0
lea ecx, [ebp - 0x1b0]
call fcn.1001587a
cmp dword [ebp - 0xc4], 0x19d44e41
jl 0x10029336
mov dword [ebp - 0x10c], 1
jmp 0x1002933d
and dword [ebp - 0x10c], 0
mov esi, dword [ebp - 0x74]
add esi, dword [ebp - 0x10c]
push 0
lea ecx, [ebp - 0x1b0]
call fcn.1001587a
mov dword [eax], esi
jmp 0x1002901e
jmp 0x10028fb9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.1001585e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b0]
call fcn.1001585e
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 0x80000000
je 0x10029638
mov dword [ebp - 0x18], 0x4643cdf9
mov dword [ebp - 0x70], 0x2d2c87a7
mov dword [ebp - 0x2c], 0x91509cf1
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x60], 0
jmp 0x100293be
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 2
jge 0x100293d4
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x154], 3
jmp 0x100293b7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x18], 1
jne 0x10029407
cmp dword [ebp - 0x70], 0
je 0x10029407
mov dword [ebp - 0xcc], 1
jmp 0x1002940e
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jae 0x10029429
mov dword [ebp - 0x14c], 1
jmp 0x10029430
and dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14c]
cmp eax, 0x6c9cd49f
jge 0x1002944c
mov dword [ebp - 0xd4], 1
jmp 0x10029453
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xd4]
jg 0x1002946a
mov dword [ebp - 0x114], 1
jmp 0x10029471
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x18], eax
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x154], 3
xor eax, eax
inc eax
cmp eax, 3
jl 0x1002949f
mov dword [ebp - 0xdc], 1
jmp 0x100294a6
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 3
je 0x100294bb
mov dword [ebp - 0x134], 1
jmp 0x100294c2
and dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x134]
je 0x100294df
mov dword [ebp - 0xe4], 1
jmp 0x100294e6
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0x70]
imul eax, dword [ebp - 0xe4]
cmp eax, 1
jg 0x10029501
mov dword [ebp - 0x11c], 1
jmp 0x10029508
and dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x11c]
cmp dword [ebp - 0x2c], eax
jne 0x1002952e
mov dword [ebp - 0xec], 1
jmp 0x10029535
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 0
ja 0x1002954a
mov dword [ebp - 0x16c], 1
jmp 0x10029551
and dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x1f8], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x154], 0
je 0x100295c3
mov dword [ebp - 0x184], 1
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x184], eax
jl 0x10029595
mov dword [ebp - 0xf4], 1
jmp 0x1002959c
and dword [ebp - 0xf4], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xf4]
mov dword [ebp + eax - 0x154], ecx
mov byte [ebp - 0x26], 0
movzx eax, byte [ebp - 0x26]
test eax, eax
je 0x100295c1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1002960a
xor eax, eax
inc eax
je 0x100295db
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x154], 0x5db0ff84
jmp 0x100295f6
mov byte [ebp - 0x2d], 0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x100295f6
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
mov byte [ebp - 0x27], 0
movzx eax, byte [ebp - 0x27]
test eax, eax
je 0x1002960a
push 0
call dword [sym.imp.GDI32.dll_GetObjectType]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 0xffff
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x64ad
push 0x4d73
call fcn.10021d7f
pop ecx
pop ecx
call eax
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x10029670
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
mov dword [ebp - 0x174], ecx
mov eax, dword [ebp - 0x174]
inc eax
inc eax
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x64ad
push 0x4d73
call fcn.10021d7f
pop ecx
pop ecx
call eax
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x10029cc9
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x38], 0xfffffff6
mov dword [ebp - 0x164], 0xffffffff
mov dword [ebp - 0x5c], 0
jmp 0x100296ad
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 3
jge 0x100296c3
mov eax, dword [ebp - 0x5c]
mov dword [ebp + eax*4 - 0x1d4], 1
jmp 0x100296a6
mov dword [ebp - 0x14], 0
jmp 0x100296d3
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jg 0x1002971f
mov dword [ebp - 0x4c], 0x446df37d
mov dword [ebp - 0x4c], 2
jmp 0x100296f0
mov eax, dword [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x1002971d
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x1002971b
push 0x21b7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
jmp 0x100296e9
jmp 0x100296cc
cmp dword [ebp - 0x14], 0x2d9e
jg 0x10029737
cmp dword [ebp - 0x14], 0
jne 0x10029737
and dword [ebp - 0xc0], 0
jmp 0x10029741
mov dword [ebp - 0xc0], 1
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x1d4], 0xf5b1
jle 0x1002975f
mov dword [ebp - 0x124], 1
jmp 0x10029766
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
neg eax
cmp eax, 3
jb 0x1002977f
mov dword [ebp - 0xfc], 1
jmp 0x10029786
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xfc], eax
jge 0x1002979d
mov dword [ebp - 0x84], 1
jmp 0x100297a4
and dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 0x10c1
jle 0x100297bc
mov dword [ebp - 0xb0], 1
jmp 0x100297c3
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 1
ja 0x100297d8
mov dword [ebp - 0xb8], 1
jmp 0x100297df
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x64], eax
imul eax, dword [ebp - 0x64], 0
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0xc0], eax
je 0x10029809
mov dword [ebp - 0xc8], 1
jmp 0x10029810
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc8], eax
je 0x10029aef
mov dword [ebp - 0x34], 0x2c78
mov dword [ebp - 0x194], 1
mov dword [ebp - 0x120], 0xf2f1e73e
mov dword [ebp - 0x14], 0x15
jmp 0x1002984a
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jne 0x10029aed
mov dword [ebp - 0x50], 0
push 3
lea ecx, [ebp - 0x1a4]
call fcn.100157dc
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0
jmp 0x1002987f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
jge 0x1002989b
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1a4]
call fcn.1001587a
mov dword [eax], 0x9a1d127a
jmp 0x10029878
mov dword [ebp - 0x1c], 0
jmp 0x100298ab
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x100298c1
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0xf8], 0xb883eb99
jmp 0x100298a4
cmp dword [ebp - 0x34], 0
je 0x100299e7
cmp dword [ebp - 0x34], 0
je 0x10029993
cmp dword [ebp - 0x50], 0
jne 0x100298e7
mov dword [ebp - 0xd8], 1
jmp 0x100298ee
and dword [ebp - 0xd8], 0
cmp dword [ebp - 0x50], 0xfffffff9
jle 0x10029900
mov dword [ebp - 0xd0], 1
jmp 0x10029907
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x194], eax
push 0
lea ecx, [ebp - 0x1a4]
call fcn.1001587a
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1d4]
add eax, 0x5b167d3d
cmp dword [ebp - 0xd8], eax
jle 0x1002994c
cmp dword [ebp - 0x38], 0
je 0x1002994c
mov dword [ebp - 0x17c], 1
jmp 0x10029953
and dword [ebp - 0x17c], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x38], 0x7a4860c0
jle 0x10029971
mov dword [ebp - 0xe0], 1
jmp 0x10029978
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x10029993
mov dword [ebp - 0xe8], 1
jmp 0x1002999a
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0x164]
jg 0x100299b7
mov dword [ebp - 0x160], 1
jmp 0x100299be
and dword [ebp - 0x160], 0
push 0
lea ecx, [ebp - 0x1a4]
call fcn.1001587a
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xf8], 0
je 0x100299e7
mov dword [ebp - 0xf0], 1
jmp 0x100299ee
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0xf0], eax
jge 0x10029a05
mov dword [ebp - 0x100], 1
jmp 0x10029a0c
and dword [ebp - 0x100], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xf8]
cmp dword [ebp - 0x100], eax
jne 0x10029a2d
mov dword [ebp - 0x15c], 1
jmp 0x10029a34
and dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x34]
inc eax
cmp eax, dword [ebp - 0x50]
je 0x10029a5b
mov dword [ebp - 0x108], 1
jmp 0x10029a62
and dword [ebp - 0x108], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x1d4]
cmp dword [ebp - 0x108], eax
jge 0x10029a82
mov dword [ebp - 0x110], 1
jmp 0x10029a89
and dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 0xffff
jae 0x10029aa1
mov dword [ebp - 0x118], 1
jmp 0x10029aa8
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 6
jg 0x10029ac9
mov dword [ebp - 0x88], 1
jmp 0x10029ad0
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x38], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.1001585e
jmp 0x10029843
jmp 0x10029b14
mov byte [ebp - 0x2e], 0
movzx eax, byte [ebp - 0x2e]
test eax, eax
je 0x10029b14
push 0
push 0x864
push 0
push 0x2563
push 0x8cb
call dword [sym.imp.GDI32.dll_ExtCreatePen]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
push 3
lea ecx, [ebp - 0x80]
call fcn.100157dc
mov dword [ebp - 4], 3
push 2
lea ecx, [ebp - 0x1bc]
call fcn.100157dc
mov byte [ebp - 4], 4
mov dword [ebp - 0x58], 0x6968939f
mov dword [ebp - 0x20], 0
jmp 0x10029b53
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10029b6c
push dword [ebp - 0x20]
lea ecx, [ebp - 0x80]
call fcn.1001587a
mov dword [eax], 0xd16d
jmp 0x10029b4c
mov dword [ebp - 0x20], 0
jmp 0x10029b7c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x10029b95
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1bc]
call fcn.1001587a
or dword [eax], 0xffffffff
jmp 0x10029b75
push 0
lea ecx, [ebp - 0x80]
call fcn.1001587a
mov esi, eax
push 1
lea ecx, [ebp - 0x80]
call fcn.1001587a
mov ecx, dword [esi]
cmp ecx, dword [eax]
jge 0x10029bbd
mov dword [ebp - 0x90], 1
jmp 0x10029bc4
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
add eax, 9
je 0x10029bed
push 1
lea ecx, [ebp - 0x80]
call fcn.1001587a
cmp dword [eax], 0x8932
jle 0x10029bed
mov dword [ebp - 0x98], 1
jmp 0x10029bf4
and dword [ebp - 0x98], 0
push 1
lea ecx, [ebp - 0x80]
call fcn.1001587a
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [eax]
jl 0x10029c14
mov dword [ebp - 0x178], 1
jmp 0x10029c1b
and dword [ebp - 0x178], 0
push 0
lea ecx, [ebp - 0x80]
call fcn.1001587a
push 1
lea ecx, [ebp - 0x80]
call fcn.1001587a
mov esi, dword [eax]
dec esi
push 1
lea ecx, [ebp - 0x1bc]
call fcn.1001587a
mov dword [eax], esi
mov dword [ebp - 0x58], 0
jmp 0x10029c51
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x1d
jne 0x10029cac
mov dword [ebp - 0x180], 5
mov dword [ebp - 0x188], 0xfecbe92e
push 1
lea ecx, [ebp - 0x80]
call fcn.1001587a
mov ecx, dword [ebp - 0x180]
cmp dword [eax], ecx
jg 0x10029c8b
mov dword [ebp - 0xa0], 1
jmp 0x10029c92
and dword [ebp - 0xa0], 0
push 0
lea ecx, [ebp - 0x80]
call fcn.1001587a
mov eax, dword [eax]
sub eax, dword [ebp - 0xa0]
mov dword [ebp - 0x188], eax
jmp 0x10029c4a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1bc]
call fcn.1001585e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001585e
jmp 0x10029cce
jmp 0x10028e83
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret