Function at 0x10016a08
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100639e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x45c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10016a85
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x350], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x358], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x288], eax
push 0x5686
push 0x7cee
push dword [ebp - 0x288]
push dword [ebp - 0x350]
push dword [ebp - 0x358]
push 0x16b7
push 0x3460
push 0
call fcn.10018748
add esp, 0x20
jmp 0x10018737
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x364], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x370], eax
lea eax, [ebp + 0x40]
mov dword [ebp - 0x368], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x118], 0x723e
mov dword [ebp - 0x360], 0x10007d74
cmp dword [ebp - 0x118], 0x724c
jle 0x10016b7b
and dword [ebp - 0x6c], 0
jmp 0x10016b1e
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x6f6f
jge 0x10016b7b
and dword [ebp - 0xc8], 0
jmp 0x10016b3d
mov eax, dword [ebp - 0xc8]
inc eax
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0x7533
jge 0x10016b79
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc8]
shl eax, cl
cdq
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x308], edx
push dword [ebp - 0x308]
push dword [ebp - 0x30c]
mov ecx, 0x1060cad8
call fcn.10012b14
jmp 0x10016b30
jmp 0x10016b17
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x238], 0
push 4
lea ecx, [ebp - 0x3cc]
call fcn.10012e69
and dword [ebp - 4], 0
mov dword [ebp - 0x74], 0
jmp 0x10016bad
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 4
jge 0x10016bc9
push dword [ebp - 0x74]
lea ecx, [ebp - 0x3cc]
call fcn.10012f07
mov dword [eax], 0xb4495231
jmp 0x10016ba6
mov dword [ebp - 0x38], 0xffffffef
jmp 0x10016bd9
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xd
jg 0x10016cc6
mov dword [ebp - 0x10c], 9
mov byte [ebp - 0x3c], 0
movzx eax, byte [ebp - 0x3c]
test eax, eax
je 0x10016c12
push 0
push 0
push 0x1258
push 0xd51
push 0x8c8
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x38]
jne 0x10016c29
mov dword [ebp - 0x190], 1
jmp 0x10016c30
and dword [ebp - 0x190], 0
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x190]
cmp dword [ebp - 0x238], eax
jle 0x10016c4e
mov dword [ebp - 0x240], 1
jmp 0x10016c55
and dword [ebp - 0x240], 0
mov eax, dword [ebp - 0x240]
sub eax, 0x950a
cmp eax, 0x31e468a0
je 0x10016c73
mov dword [ebp - 0x1ac], 1
jmp 0x10016c7a
and dword [ebp - 0x1ac], 0
mov eax, dword [ebp - 0x1ac]
sub eax, dword [ebp - 0x238]
add eax, 0xad43
cmp dword [ebp - 0x38], eax
jle 0x10016ca5
cmp dword [ebp - 0x10c], 0
je 0x10016ca5
mov dword [ebp - 0x110], 1
jmp 0x10016cac
and dword [ebp - 0x110], 0
push 0
lea ecx, [ebp - 0x3cc]
call fcn.10012f07
mov ecx, dword [ebp - 0x110]
mov dword [eax], ecx
jmp 0x10016bd2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3cc]
call fcn.10012eeb
mov dword [ebp - 4], 1
cmp dword [ebp - 0x118], 0x7099
jge 0x10016cf8
mov edx, dword [ebp - 0x360]
mov ecx, 0x1060cad8
call fcn.10015678
jmp 0x10016d14
or dword [ebp - 4], 0xffffffff
jmp 0x10016d1e
mov eax, dword [ebp - 0x368]
movzx eax, byte [eax]
test eax, eax
je 0x10018703
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x11c], 0xa0b8ee41
mov dword [ebp - 0x29c], 6
mov byte [ebp - 0x3b], 0
movzx eax, byte [ebp - 0x3b]
test eax, eax
je 0x10016d79
push 0
push 0xb58
push 0x260a
push 0x1b37
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
mov dword [ebp - 0x58], 0
jmp 0x10016d89
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffe8
jge 0x10016dd8
mov dword [ebp - 0xc4], 0x59e57ad9
mov dword [ebp - 0xc4], 0
jmp 0x10016db2
mov eax, dword [ebp - 0xc4]
dec eax
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0xfffffffc
je 0x10016dd6
mov dword [ebp - 0x11c], 0x220985a9
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x11c]
mov dword [ebp - 0x29c], eax
jmp 0x10016da5
jmp 0x10016d82
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x5c], 0xd53bc6e5
mov dword [ebp - 0x21c], 0xccf
mov dword [ebp - 0x2f0], 0x10007db0
cmp dword [ebp - 0x21c], 0xde9
jle 0x10016ed8
and dword [ebp - 0x84], 0
jmp 0x10016e38
mov eax, dword [ebp - 0x84]
inc eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0x1cb9
jge 0x10016ed8
and dword [ebp - 0x7c], 0
jmp 0x10016e55
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xba4
jge 0x10016ed3
and dword [ebp - 0x64], 0
jmp 0x10016e6b
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x44ee
jge 0x10016ece
mov eax, dword [ebp - 0x7c]
cdq
idiv dword [ebp - 0x64]
or edx, dword [ebp - 0x84]
mov eax, edx
cdq
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], edx
push dword [ebp - 0x314]
push dword [ebp - 0x318]
lea ecx, [ebp - 0x454]
call fcn.1000d4be
pop ecx
pop ecx
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
call fcn.10012af4
push eax
call fcn.1004ded6
pop ecx
lea ecx, [ebp - 0x454]
call fcn.10012aea
jmp 0x10016e64
jmp 0x10016e4e
jmp 0x10016e2b
mov dword [ebp - 0x3b4], 8
mov dword [ebp - 0x3b0], 8
mov dword [ebp - 0x3ac], 8
mov dword [ebp - 0x3a8], 8
lea ecx, [ebp - 0xed]
call fcn.10012f16
push eax
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x424]
call fcn.10012f19
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xd4]
call fcn.10012ec5
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp dword [ebp - 0x21c], 0x8ff
jge 0x10016f58
push dword [ebp - 0x2f0]
call fcn.1004ded6
pop ecx
jmp 0x10016f74
mov dword [ebp - 4], 3
jmp 0x10016f84
mov dword [ebp - 0x24], 0x6f44401d
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1bc], 0x7c1b
mov dword [ebp - 0x2f8], 0x10007e20
cmp dword [ebp - 0x1bc], 0x7d62
jle 0x10017067
push 0x9ed
call dword [sym.imp.USER32.dll_PostQuitMessage]
and dword [ebp - 0xb8], 0
jmp 0x10016fd7
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0x1ca7
jge 0x10017067
and dword [ebp - 0x8c], 0
jmp 0x10016ffd
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x6352
jge 0x10017062
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x8c]
sar eax, cl
cdq
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], edx
push dword [ebp - 0x320]
push dword [ebp - 0x324]
lea ecx, [ebp - 0x43c]
call fcn.1000d4be
pop ecx
pop ecx
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
call fcn.10012af4
push eax
call fcn.1004ded6
pop ecx
lea ecx, [ebp - 0x43c]
call fcn.10012aea
jmp 0x10016ff0
jmp 0x10016fca
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x1c]
jne 0x1001707b
mov dword [ebp - 0xd8], 1
jmp 0x10017082
and dword [ebp - 0xd8], 0
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov ecx, dword [ebp - 0xd8]
mov dword [eax], ecx
cmp dword [ebp - 0xd8], 0
jne 0x100170de
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov dword [ebp - 0x124], eax
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov ecx, dword [ebp - 0x124]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x124]
cmp dword [eax], 0
jne 0x100170de
and dword [ebp - 0x1b4], 0
jmp 0x100170e8
mov dword [ebp - 0x1b4], 1
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jle 0x10017105
mov dword [ebp - 0x12c], 1
jmp 0x1001710c
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
sub eax, 0xa00f
cmp eax, dword [ebp - 0x12c]
je 0x1001712e
mov dword [ebp - 0x1fc], 1
jmp 0x10017135
and dword [ebp - 0x1fc], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1fc], eax
je 0x1001714c
mov dword [ebp - 0x134], 1
jmp 0x10017153
and dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1bc], 0x7924
jge 0x10017178
push dword [ebp - 0x2f8]
call fcn.1004ded6
pop ecx
jmp 0x10017194
mov dword [ebp - 4], 3
jmp 0x100171a4
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
cmp dword [eax], 0
je 0x100171d9
mov byte [ebp - 0x3d], 0
movzx eax, byte [ebp - 0x3d]
test eax, eax
je 0x100171d4
push 0x24c6
push 0x1e32
push 0
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x10017737
push 2
lea ecx, [ebp - 0x264]
call fcn.10012e69
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x2c], 0
jmp 0x10017208
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jge 0x10017224
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x264]
call fcn.10012f07
mov dword [eax], 0xdb84c6a3
jmp 0x10017201
mov dword [ebp - 0x2c], 0
jmp 0x10017234
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 4
jge 0x1001724a
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x274], 0xfffffffd
jmp 0x1001722d
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x274]
cmp ecx, dword [ebp + eax - 0x274]
jle 0x10017272
mov dword [ebp - 0x13c], 1
jmp 0x10017279
and dword [ebp - 0x13c], 0
cmp dword [ebp - 0x5c], 1
jle 0x1001728b
mov dword [ebp - 0x23c], 1
jmp 0x10017292
and dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x28], eax
push 0
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov ecx, dword [ebp - 0x23c]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x28]
add eax, ecx
push 4
pop ecx
imul ecx, ecx, 3
mov dword [ebp + ecx - 0x274], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x1c], 0
je 0x100172ed
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x274], 0
je 0x100172ed
mov dword [ebp - 0x144], 1
jmp 0x100172f4
and dword [ebp - 0x144], 0
cmp dword [ebp - 0x144], 0xb7f
jl 0x1001730c
mov dword [ebp - 0x1c4], 1
jmp 0x10017313
and dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x1c4], eax
jge 0x1001733a
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x274], 0
je 0x1001733a
mov dword [ebp - 0x14c], 1
jmp 0x10017341
and dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x1001735e
mov dword [ebp - 0x204], 1
jmp 0x10017365
and dword [ebp - 0x204], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x204], eax
jle 0x1001737c
mov dword [ebp - 0x300], 1
jmp 0x10017383
and dword [ebp - 0x300], 0
push 0
lea ecx, [ebp - 0x264]
call fcn.10012f07
mov dword [ebp - 0x2a0], eax
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [eax]
mov dword [ecx], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x274]
cmp eax, dword [ebp - 0x14]
jge 0x100173cb
mov dword [ebp - 0x154], 1
jmp 0x100173d2
and dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x154]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x4c]
je 0x100173fc
mov eax, 0x5b50
test eax, eax
je 0x100173fc
mov dword [ebp - 0x1cc], 1
jmp 0x10017403
and dword [ebp - 0x1cc], 0
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov ecx, dword [ebp - 0x1cc]
sub ecx, dword [eax]
neg ecx
cmp ecx, 0xfda8
jle 0x1001742e
mov dword [ebp - 0x15c], 1
jmp 0x10017435
and dword [ebp - 0x15c], 0
cmp dword [ebp - 0x15c], 0xffff
jb 0x1001744d
mov dword [ebp - 0x224], 1
jmp 0x10017454
and dword [ebp - 0x224], 0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x1c], 0
jmp 0x1001746d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x11
jle 0x10017728
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov dword [eax], 0xf41af53c
mov dword [ebp - 0x4c], 0
jmp 0x1001749a
mov eax, dword [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffe9
jge 0x10017723
mov dword [ebp - 0x28], 3
jmp 0x100174b4
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1001771e
push 3
lea ecx, [ebp - 0x388]
call fcn.10012e69
mov byte [ebp - 4], 9
mov dword [ebp - 0xc0], 0
jmp 0x100174e8
mov eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 3
jge 0x1001750a
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x388]
call fcn.10012f07
mov dword [eax], 9
jmp 0x100174db
mov dword [ebp - 0x14], 0
jmp 0x1001751a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jg 0x1001770a
push 1
lea ecx, [ebp - 0x3c0]
call fcn.10012e69
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x94], 0
jmp 0x1001754e
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 1
jge 0x10017570
push dword [ebp - 0x94]
lea ecx, [ebp - 0x3c0]
call fcn.10012f07
mov dword [eax], 0xbb1b5b3a
jmp 0x10017541
mov dword [ebp - 0x24], 0
jmp 0x10017580
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jg 0x100176f6
push dword [ebp - 0x14]
lea ecx, [ebp - 0xd4]
call fcn.10012f07
push dword [ebp - 0x14]
lea ecx, [ebp - 0x264]
call fcn.10012f07
mov esi, eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x1001765a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x264]
call fcn.10012f07
cmp dword [eax], 0x336fde00
jg 0x100175e2
mov dword [ebp - 0xec], 1
jmp 0x100175e9
and dword [ebp - 0xec], 0
push dword [ebp - 0x28]
lea ecx, [ebp - 0xd4]
call fcn.10012f07
mov ecx, dword [ebp - 0xec]
mov dword [eax], ecx
mov esi, dword [ebp - 0xec]
neg esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x264]
call fcn.10012f07
sub esi, dword [eax]
mov dword [ebp - 0x164], esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x164]
mov dword [ebp + eax*4 - 0x274], ecx
mov eax, dword [ebp - 0x164]
neg eax
cmp eax, 0xd9140931
jbe 0x1001764e
push 1
lea ecx, [ebp - 0xd4]
call fcn.10012f07
cmp dword [eax], 0
je 0x1001765a
mov dword [ebp - 0x1d4], 1
jmp 0x10017661
and dword [ebp - 0x1d4], 0
cmp dword [ebp - 0x1d4], 0xb722
jne 0x10017679
mov dword [ebp - 0x16c], 1
jmp 0x10017680
and dword [ebp - 0x16c], 0
push 0
lea ecx, [ebp - 0x3c0]
call fcn.10012f07
mov ecx, dword [ebp - 0x16c]
cmp ecx, dword [eax]
jg 0x100176a3
mov dword [ebp - 0x354], 1
jmp 0x100176aa
and dword [ebp - 0x354], 0
push 0
lea ecx, [ebp - 0x388]
call fcn.10012f07
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp + eax*4 - 0x274]
cmp eax, dword [ebp - 0x14]
jne 0x100176d2
mov dword [ebp - 0x20c], 1
jmp 0x100176d9
and dword [ebp - 0x20c], 0
mov esi, dword [ebp - 0x5c]
add esi, dword [ebp - 0x20c]
push 0
lea ecx, [ebp - 0x388]
call fcn.10012f07
mov dword [eax], esi
jmp 0x10017579
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3c0]
call fcn.10012eeb
jmp 0x10017513
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x388]
call fcn.10012eeb
jmp 0x100174ad
jmp 0x10017493
jmp 0x10017466
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.10012eeb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.10012eeb
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0xe4], 1
mov dword [ebp - 0x60], 0x9ec4279c
mov dword [ebp - 0x44], 0xfffffffc
mov dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 0x22c], 0xef27779e
mov dword [ebp - 0x1a4], 0x437f0d30
mov dword [ebp - 0x2bc], 0xb2ef5ead
mov dword [ebp - 0x34], 0
jmp 0x100177a2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x100177b8
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x24c], 0xd6f1
jmp 0x1001779b
mov dword [ebp - 0x34], 0
jmp 0x100177c8
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x100177de
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x258], 0xbd0176df
jmp 0x100177c1
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x60], eax
imul eax, dword [ebp - 0x44], 0
cmp dword [ebp - 0x60], eax
jne 0x100177fc
mov dword [ebp - 0x174], 1
jmp 0x10017803
and dword [ebp - 0x174], 0
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x24c], 0
jne 0x10017824
cmp dword [ebp - 0xbc], 0
jne 0x10017824
and dword [ebp - 0x1dc], 0
jmp 0x1001782e
mov dword [ebp - 0x1dc], 1
mov eax, dword [ebp - 0x174]
cmp eax, dword [ebp - 0x1dc]
jg 0x10017848
mov dword [ebp - 0x310], 1
jmp 0x1001784f
and dword [ebp - 0x310], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x44]
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x258], eax
mov dword [ebp - 0x1f4], 0x4491
mov dword [ebp - 0x35c], 0x10007e98
cmp dword [ebp - 0x1f4], 0x4801
jle 0x1001797e
and dword [ebp - 0xb0], 0
jmp 0x100178b7
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0x1863
jge 0x1001797e
and dword [ebp - 0x9c], 0
jmp 0x100178dd
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0xcf2
jge 0x10017979
and dword [ebp - 0xb4], 0
jmp 0x10017903
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0x1bf3
jge 0x10017974
and dword [ebp - 0xa4], 0
jmp 0x10017925
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0x53d6
jge 0x10017972
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x9c]
shl eax, cl
mov ecx, dword [ebp - 0xb4]
shl eax, cl
and eax, dword [ebp - 0xa4]
cdq
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], edx
push dword [ebp - 0x32c]
push dword [ebp - 0x330]
mov ecx, 0x1060cad8
call fcn.10012b14
jmp 0x10017918
jmp 0x100178f6
jmp 0x100178d0
jmp 0x100178aa
push 4
pop eax
shl eax, 1
imul eax, dword [ebp + eax - 0x24c], 0xfffffffd
test eax, eax
jne 0x10017b40
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x258]
mov dword [ebp - 0x17c], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x17c]
mov dword [ebp + eax - 0x258], ecx
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x60], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x258]
mov dword [ebp - 0x3e8], eax
mov eax, 0xf2b7
sub eax, dword [ebp - 0xbc]
cmp eax, 0x4108fa7a
jge 0x100179f3
mov dword [ebp - 0x234], 1
jmp 0x100179fa
and dword [ebp - 0x234], 0
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0x234], eax
jl 0x10017a14
mov dword [ebp - 0x184], 1
jmp 0x10017a1b
and dword [ebp - 0x184], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x44]
imul ecx, dword [ebp - 0x184]
cmp ecx, dword [ebp + eax - 0x258]
jge 0x10017a3f
mov dword [ebp - 0x1e4], 1
jmp 0x10017a46
and dword [ebp - 0x1e4], 0
cmp dword [ebp - 0x1e4], 1
jbe 0x10017a5b
mov dword [ebp - 0x2ac], 1
jmp 0x10017a62
and dword [ebp - 0x2ac], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x258]
mov dword [ebp - 0x414], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [ebp + eax - 0x24c]
jge 0x10017a96
mov dword [ebp - 0x378], 1
jmp 0x10017a9d
and dword [ebp - 0x378], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x258]
mov dword [ebp - 0x3f0], eax
cmp dword [ebp - 0x60], 0xbe86de1f
ja 0x10017ace
mov eax, 0x9462
test eax, eax
je 0x10017ace
mov dword [ebp - 0x18c], 1
jmp 0x10017ad5
and dword [ebp - 0x18c], 0
cmp dword [ebp - 0x18c], 0xe168
jle 0x10017aed
mov dword [ebp - 0x214], 1
jmp 0x10017af4
and dword [ebp - 0x214], 0
cmp dword [ebp - 0x214], 0xf8a4198f
je 0x10017b0c
mov dword [ebp - 0x194], 1
jmp 0x10017b13
and dword [ebp - 0x194], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x194], eax
jle 0x10017b2a
mov dword [ebp - 0x2b4], 1
jmp 0x10017b31
and dword [ebp - 0x2b4], 0
cmp dword [ebp - 0x44], 0
jne 0x10017b40
and dword [ebp - 0x31c], 0
jmp 0x10017b4a
mov dword [ebp - 0x31c], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x24c]
mov dword [ebp - 0x3f8], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x41c], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0x24c]
cmp ecx, dword [ebp + eax - 0x24c]
jg 0x10017b8e
mov dword [ebp - 0x1ec], 1
jmp 0x10017b95
and dword [ebp - 0x1ec], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x24c]
cmp dword [ebp - 0x1ec], eax
jne 0x10017bb6
mov dword [ebp - 0x19c], 1
jmp 0x10017bbd
and dword [ebp - 0x19c], 0
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 4], 0xb
cmp dword [ebp - 0x1f4], 0x40b6
jge 0x10017c04
mov edx, dword [ebp - 0x35c]
mov ecx, 0x1060cad8
call fcn.10015678
jmp 0x10017c20
or dword [ebp - 4], 0xffffffff
jmp 0x10017c2a
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x30], 0xa48bbca6
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x400], 1
mov dword [ebp - 0x3d4], 0xfffffff8
mov dword [ebp - 0x3dc], 0xf2633933
mov dword [ebp - 0xdc], 0x5bf81606
mov dword [ebp - 0x374], 0xfffffff7
mov dword [ebp - 0x2dc], 0xde90
mov dword [ebp - 0x30], 0x1b
jmp 0x10017c9c
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 6
je 0x10017f3c
mov dword [ebp - 0x54], 0xdc4b4e12
mov dword [ebp - 0xf4], 0xffff
mov dword [ebp - 0x54], 0xb
jmp 0x10017cc7
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xc
jl 0x10017e0b
push 3
lea ecx, [ebp - 0x394]
call fcn.10012e69
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x20], 0x44455595
mov dword [ebp - 0xac], 0
jmp 0x10017d05
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 3
jge 0x10017d27
push dword [ebp - 0xac]
lea ecx, [ebp - 0x394]
call fcn.10012f07
mov dword [eax], 0x9ae77ab3
jmp 0x10017cf8
mov dword [ebp - 0x20], 2
jmp 0x10017d37
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x10017d53
mov byte [ebp - 0x3a], 0
movzx eax, byte [ebp - 0x3a]
test eax, eax
je 0x10017d51
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10017d30
mov dword [ebp - 0x20], 0
jmp 0x10017d63
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jg 0x10017df7
mov dword [ebp - 0x68], 5
mov dword [ebp - 0x2cc], 1
mov byte [ebp - 0x39], 0
movzx eax, byte [ebp - 0x39]
test eax, eax
je 0x10017da0
push 0
push 0
push 0x1035
push 0x7bb
push 0
call dword [sym.imp.USER32.dll_InsertMenuW]
mov dword [ebp - 0x68], 0
jmp 0x10017db0
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 2
jg 0x10017df2
push dword [ebp - 0x20]
lea ecx, [ebp - 0x394]
call fcn.10012f07
mov dword [ebp - 0x114], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x394]
call fcn.10012f07
mov ecx, dword [ebp - 0x114]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x114]
mov eax, dword [eax]
mov dword [ebp - 0x2cc], eax
jmp 0x10017da9
jmp 0x10017d5c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x394]
call fcn.10012eeb
jmp 0x10017cc0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xf4]
imul eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x30]
jg 0x10017e2c
mov dword [ebp - 0x130], 1
jmp 0x10017e33
and dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xf4]
je 0x10017e4a
mov dword [ebp - 0x108], 1
jmp 0x10017e51
and dword [ebp - 0x108], 0
mov eax, dword [ebp - 0xf4]
cmp eax, dword [ebp - 0x108]
jg 0x10017e6b
mov dword [ebp - 0x120], 1
jmp 0x10017e72
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x54]
imul eax, dword [ebp - 0x120]
cmp eax, 0xff15cc7c
jbe 0x10017e8f
mov dword [ebp - 0x128], 1
jmp 0x10017e96
and dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 0xffffffff
jl 0x10017eab
mov dword [ebp - 0x138], 1
jmp 0x10017eb2
and dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x138]
jle 0x10017ecc
mov dword [ebp - 0x140], 1
jmp 0x10017ed3
and dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x140], eax
jl 0x10017eea
mov dword [ebp - 0x148], 1
jmp 0x10017ef1
and dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x148], eax
jl 0x10017f08
mov dword [ebp - 0x150], 1
jmp 0x10017f0f
and dword [ebp - 0x150], 0
cmp dword [ebp - 0x150], 0xcff2
jl 0x10017f27
mov dword [ebp - 0x158], 1
jmp 0x10017f2e
and dword [ebp - 0x158], 0
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x54], eax
jmp 0x10017c95
cmp dword [ebp - 0x70], 0xd2f23d37
jae 0x10017f51
mov dword [ebp - 0x168], 1
jmp 0x10017f58
and dword [ebp - 0x168], 0
cmp dword [ebp - 0x374], 0
jb 0x10017f6d
mov dword [ebp - 0x160], 1
jmp 0x10017f74
and dword [ebp - 0x160], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0xdc]
dec eax
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x2d4]
cmp eax, dword [ebp - 0x334]
jl 0x10017fb3
mov dword [ebp - 0x170], 1
jmp 0x10017fba
and dword [ebp - 0x170], 0
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x170]
jne 0x10017fd7
mov dword [ebp - 0x178], 1
jmp 0x10017fde
and dword [ebp - 0x178], 0
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x364]
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x50], 0xa9d19ac1
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x188], 0xae4b9a73
push 1
lea ecx, [ebp - 0x100]
call fcn.10012e69
mov dword [ebp - 4], 0xe
mov dword [ebp - 0xe0], 7
mov dword [ebp - 0x180], 0x5a48
mov dword [ebp - 0x2e4], 0x10007f1c
cmp dword [ebp - 0x180], 0x5d4d
jle 0x100180b4
push 0
push 0x50a
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
and dword [ebp - 0x78], 0
jmp 0x10018066
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x370b
jge 0x100180b4
and dword [ebp - 0x80], 0
jmp 0x1001807c
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0x4ae4
jge 0x100180b2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
shl eax, cl
cdq
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x338], edx
push dword [ebp - 0x338]
push dword [ebp - 0x33c]
mov ecx, 0x1060cad8
call fcn.10012b14
jmp 0x10018075
jmp 0x1001805f
mov dword [ebp - 0x1c8], 0xffffffff
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x180], 0x59aa
jge 0x100180de
mov edx, dword [ebp - 0x2e4]
mov ecx, 0x1060cad8
call fcn.10015678
jmp 0x100180fa
mov dword [ebp - 4], 0xe
jmp 0x1001810a
mov dword [ebp - 0x340], 1
mov dword [ebp - 0x88], 0
jmp 0x1001812d
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 1
jge 0x1001814f
push dword [ebp - 0x88]
lea ecx, [ebp - 0x100]
call fcn.10012f07
mov dword [eax], 0xc6f8b8ae
jmp 0x10018120
mov dword [ebp - 0x50], 0x4d2edc75
cmp dword [ebp - 0x50], 0
jb 0x10018165
xor eax, eax
inc eax
je 0x10018165
cmp dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3e4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x18], 0
jmp 0x10018187
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x10018505
mov dword [ebp - 0x98], 0xbde283bc
mov dword [ebp - 0x48], 0xcf456574
mov dword [ebp - 0x1f0], 0x85869
push 2
lea ecx, [ebp - 0x3a0]
call fcn.10012e69
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x90], 0
jmp 0x100181d6
mov eax, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 2
jge 0x100181f8
push dword [ebp - 0x90]
lea ecx, [ebp - 0x3a0]
call fcn.10012f07
mov dword [eax], 0x485bdf60
jmp 0x100181c9
mov eax, dword [ebp - 0xe0]
dec eax
mov dword [ebp - 0xe0], eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x100]
call fcn.10012f07
cmp dword [eax], 0
jne 0x10018234
push dword [ebp - 0x18]
lea ecx, [ebp - 0x100]
call fcn.10012f07
cmp dword [eax], 0
jne 0x10018234
and dword [ebp - 0x208], 0
jmp 0x1001823e
mov dword [ebp - 0x208], 1
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1001847b
push dword [ebp - 0x18]
lea ecx, [ebp - 0x100]
call fcn.10012f07
mov eax, dword [eax]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x18]
je 0x1001827b
mov dword [ebp - 0x104], 1
jmp 0x10018282
and dword [ebp - 0x104], 0
mov esi, dword [ebp - 0x104]
add esi, 0x67c35cf9
push 0
lea ecx, [ebp - 0x100]
call fcn.10012f07
imul esi, dword [eax]
test esi, esi
jne 0x100182b1
cmp dword [ebp - 0x50], 0
jne 0x100182b1
and dword [ebp - 0x198], 0
jmp 0x100182bb
mov dword [ebp - 0x198], 1
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x198], eax
jl 0x100182d2
mov dword [ebp - 0x1a0], 1
jmp 0x100182d9
and dword [ebp - 0x1a0], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x100]
call fcn.10012f07
mov ecx, dword [ebp - 0x1a0]
cmp ecx, dword [eax]
jge 0x100182fd
mov dword [ebp - 0x1a8], 1
jmp 0x10018304
and dword [ebp - 0x1a8], 0
mov eax, dword [ebp - 0x1f0]
cmp dword [ebp - 0x1a8], eax
jg 0x1001831e
mov dword [ebp - 0x1b0], 1
jmp 0x10018325
and dword [ebp - 0x1b0], 0
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x1b0], eax
jle 0x1001833f
mov dword [ebp - 0x1b8], 1
jmp 0x10018346
and dword [ebp - 0x1b8], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x1b8], eax
je 0x1001835d
mov dword [ebp - 0x1c0], 1
jmp 0x10018364
and dword [ebp - 0x1c0], 0
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c8], eax
mov esi, dword [ebp - 0x1c8]
imul esi, dword [ebp - 0x98]
sub esi, dword [ebp - 0xe0]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x100]
call fcn.10012f07
cmp esi, dword [eax]
jg 0x100183b1
push dword [ebp - 0x18]
lea ecx, [ebp - 0x100]
call fcn.10012f07
cmp dword [eax], 0
jne 0x100183b1
and dword [ebp - 0x1d0], 0
jmp 0x100183bb
mov dword [ebp - 0x1d0], 1
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x1d0], eax
jne 0x100183d5
mov dword [ebp - 0x1d8], 1
jmp 0x100183dc
and dword [ebp - 0x1d8], 0
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x3fa8b742
jge 0x100183fa
mov dword [ebp - 0x1e0], 1
jmp 0x10018401
and dword [ebp - 0x1e0], 0
cmp dword [ebp - 0x1e0], 0x2c82
jne 0x10018419
mov dword [ebp - 0x1e8], 1
jmp 0x10018420
and dword [ebp - 0x1e8], 0
cmp dword [ebp - 0x1e8], 9
jbe 0x10018435
mov dword [ebp - 0x1f8], 1
jmp 0x1001843c
and dword [ebp - 0x1f8], 0
mov eax, dword [ebp - 0x1f0]
cmp dword [ebp - 0x1f8], eax
jl 0x10018456
mov dword [ebp - 0xe8], 1
jmp 0x1001845d
and dword [ebp - 0xe8], 0
push 1
lea ecx, [ebp - 0x3a0]
call fcn.10012f07
mov ecx, dword [ebp - 0xe8]
mov dword [eax], ecx
cmp dword [ebp - 0xe8], 0
je 0x1001848d
cmp dword [ebp - 0x18], 0
je 0x1001848d
mov dword [ebp - 0x200], 1
jmp 0x10018494
and dword [ebp - 0x200], 0
imul eax, dword [ebp - 0x200], 0
test eax, eax
jne 0x100184ba
push 1
lea ecx, [ebp - 0x3a0]
call fcn.10012f07
cmp dword [eax], 0
jne 0x100184ba
and dword [ebp - 0x210], 0
jmp 0x100184c4
mov dword [ebp - 0x210], 1
mov eax, dword [ebp - 0x208]
cmp eax, dword [ebp - 0x210]
jl 0x100184de
mov dword [ebp - 0x218], 1
jmp 0x100184e5
and dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x340], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x3a0]
call fcn.10012eeb
jmp 0x10018180
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.10012eeb
mov dword [ebp - 0x220], 0x3c14
mov dword [ebp - 0x2f4], 0x10007f50
cmp dword [ebp - 0x220], 0x3c5e
jle 0x100185de
and dword [ebp - 0xa0], 0
jmp 0x1001854e
mov eax, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0x2bf
jge 0x100185de
and dword [ebp - 0xa8], 0
jmp 0x10018574
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0x77e5
jge 0x100185d9
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa8]
sar eax, cl
cdq
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], edx
push dword [ebp - 0x344]
push dword [ebp - 0x348]
lea ecx, [ebp - 0x46c]
call fcn.1000d4be
pop ecx
pop ecx
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
call fcn.10012af4
push eax
call fcn.1004ded6
pop ecx
lea ecx, [ebp - 0x46c]
call fcn.10012aea
jmp 0x10018567
jmp 0x10018541
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 4], 0x12
cmp dword [ebp - 0x220], 0x3939
jge 0x10018609
push dword [ebp - 0x2f4]
call fcn.1004ded6
pop ecx
jmp 0x10018625
or dword [ebp - 4], 0xffffffff
jmp 0x1001862f
mov eax, dword [ebp - 0x34c]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x3ec], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x3f4], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x3fc], eax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x404], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x3d8], eax
mov eax, dword [ebp - 0x228]
mov eax, dword [eax]
add eax, 0x5364
imul eax, eax, 0xb87b
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x228]
push dword [eax]
mov ecx, dword [ebp - 0x2d8]
call fcn.10012f07
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
jmp 0x10018737
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x28c]
movzx eax, byte [eax]
test eax, eax
je 0x10018737
push 0
push 0
push 0x1538
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret