Function at 0x1004eeb6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100823ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1004f0f0
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x10], 0xfffffff6
mov dword [ebp - 0x24], 0x2443ac46
mov dword [ebp - 0x44], 0
jmp 0x1004ef07
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 2
jge 0x1004ef1d
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x194], 0
jmp 0x1004ef00
cmp dword [ebp - 0x10], 0
je 0x1004eff7
mov dword [ebp - 0x158], 0x432a2768
mov dword [ebp - 0x154], 0x432a2768
mov dword [ebp - 0x150], 0x432a2768
mov dword [ebp - 0x14c], 0x432a2768
lea ecx, [ebp - 0x69]
call fcn.10009483
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x18c]
call fcn.10017444
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x184]
call fcn.1001740a
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 3
jmp 0x1004ef95
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1004efe6
mov dword [ebp - 0x2c], 0x73d2d672
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x1004efb8
push 0
push 0
call dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
mov dword [ebp - 0x2c], 0
jmp 0x1004efc8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 4
jge 0x1004efe4
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x184]
call fcn.10017435
mov dword [eax], 0xfffffff7
jmp 0x1004efc1
jmp 0x1004ef8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x184]
call fcn.10017430
jmp 0x1004f05f
mov dword [ebp - 0xfc], 0xfe75
mov dword [ebp - 0x10], 0
jmp 0x1004f011
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffe3
je 0x1004f04d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x24], 0
jmp 0x1004f02d
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xfffffff6
jg 0x1004f04b
mov dword [ebp - 0x88], 0x64c7b7f6
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x88], eax
jmp 0x1004f026
jmp 0x1004f00a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x40], 0
jmp 0x1004f076
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jge 0x1004f0ce
mov dword [ebp - 0x144], 0xffff
mov dword [ebp - 0x30], 0xfab8c3ad
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x30], 0xf
jmp 0x1004f0a6
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xfffffff7
jne 0x1004f0cc
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x1004f0ca
push 0x1a40
push 0x2ca
push 0
call dword [sym.imp.GDI32.dll_OffsetRgn]
jmp 0x1004f09f
jmp 0x1004f06f
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
jmp 0x1004f7dc
push 3
lea ecx, [ebp - 0x54]
call fcn.100173c8
mov dword [ebp - 4], 1
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x18], 0
jmp 0x1004f11b
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1004f134
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
call fcn.10017435
mov dword [eax], 0x2e91a049
jmp 0x1004f114
mov dword [ebp - 0x18], 0
jmp 0x1004f144
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x1004f15a
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x170], 0xaa237f4a
jmp 0x1004f13d
push 0
lea ecx, [ebp - 0x54]
call fcn.10017435
and dword [eax], 0
jmp 0x1004f18a
push 0
lea ecx, [ebp - 0x54]
call fcn.10017435
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xec]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x54]
call fcn.10017435
cmp dword [eax], 0x15
jge 0x1004f40d
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x48], 0xe215169f
mov dword [ebp - 0x12c], 0xa0949511
mov dword [ebp - 0xc8], 0x19791169
push 2
lea ecx, [ebp - 0x54]
call fcn.10017435
mov ecx, dword [ebp - 0x1c]
cmp dword [eax], ecx
jl 0x1004f1d9
mov dword [ebp - 0x7c], 1
jmp 0x1004f1dd
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x1c]
cmp eax, 7
jg 0x1004f1f4
mov dword [ebp - 0xb4], 1
jmp 0x1004f1fb
and dword [ebp - 0xb4], 0
push 1
lea ecx, [ebp - 0x54]
call fcn.10017435
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [eax]
je 0x1004f21b
mov dword [ebp - 0x104], 1
jmp 0x1004f222
and dword [ebp - 0x104], 0
push 0
lea ecx, [ebp - 0x54]
call fcn.10017435
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffb
jb 0x1004f241
mov dword [ebp - 0x58], 1
jmp 0x1004f245
and dword [ebp - 0x58], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0x170], ecx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x12c], eax
push 0xfffffffffffffff6
pop eax
test eax, eax
je 0x1004f277
cmp dword [ebp - 0x48], 0
je 0x1004f277
mov dword [ebp - 0x84], 1
jmp 0x1004f27e
and dword [ebp - 0x84], 0
push 1
lea ecx, [ebp - 0x54]
call fcn.10017435
mov eax, dword [eax]
cmp eax, dword [ebp - 0x84]
jge 0x1004f29e
mov dword [ebp - 0xe0], 1
jmp 0x1004f2a5
and dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0
je 0x1004f2c9
push 0
lea ecx, [ebp - 0x54]
call fcn.10017435
cmp dword [eax], 0
je 0x1004f2c9
mov dword [ebp - 0x8c], 1
jmp 0x1004f2d0
and dword [ebp - 0x8c], 0
push 2
lea ecx, [ebp - 0x54]
call fcn.10017435
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [eax]
jg 0x1004f2f0
mov dword [ebp - 0xc0], 1
jmp 0x1004f2f7
and dword [ebp - 0xc0], 0
imul eax, dword [ebp - 0xc0], 0
cmp eax, dword [ebp - 0x1c]
jl 0x1004f30f
mov dword [ebp - 0x94], 1
jmp 0x1004f316
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
sub eax, 0xc3e1
cmp eax, dword [ebp - 0x1c]
je 0x1004f332
mov dword [ebp - 0xd8], 1
jmp 0x1004f339
and dword [ebp - 0xd8], 0
push 0
lea ecx, [ebp - 0x54]
call fcn.10017435
mov ecx, dword [ebp - 0xd8]
cmp ecx, dword [eax]
jl 0x1004f359
mov dword [ebp - 0x10c], 1
jmp 0x1004f360
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x48], eax
jle 0x1004f374
mov dword [ebp - 0x9c], 1
jmp 0x1004f37b
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0x9c], eax
jge 0x1004f395
mov dword [ebp - 0xa4], 1
jmp 0x1004f39c
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0xa4], eax
jge 0x1004f3b6
mov dword [ebp - 0xe8], 1
jmp 0x1004f3bd
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xe8]
jne 0x1004f3d4
mov dword [ebp - 0xac], 1
jmp 0x1004f3db
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xac]
cmp eax, 0xffffffff
je 0x1004f3f5
mov dword [ebp - 0xd0], 1
jmp 0x1004f3fc
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x134], eax
jmp 0x1004f169
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10017430
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x14], 0xfffffff6
mov dword [ebp - 0x3c], 0
jmp 0x1004f442
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 3
jge 0x1004f458
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0xf8], 3
jmp 0x1004f43b
mov dword [ebp - 0x14], 2
jmp 0x1004f468
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x1004f532
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x1004f499
push 0
push 0
push 0x181b
push 0x1a83
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0xf8]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x14], 1
jge 0x1004f4bb
mov dword [ebp - 0x13c], 1
jmp 0x1004f4c2
and dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0xf8]
mov dword [ebp - 0x174], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xf8]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0xf8], 0
jne 0x1004f4ff
or eax, 0xffffffff
jne 0x1004f4ff
mov dword [ebp - 0x74], 1
jmp 0x1004f503
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp + eax*4 - 0xf8], 0xffffffff
cmp eax, dword [ebp - 0x74]
jge 0x1004f51c
mov dword [ebp - 0x78], 1
jmp 0x1004f520
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x78]
mov dword [ebp + eax*4 - 0xf8], ecx
jmp 0x1004f461
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x60]
cmp dword [eax], 0
je 0x1004f5d7
push 0xfffffffffffffff7
pop eax
test eax, eax
je 0x1004f5d7
mov dword [ebp - 0xdc], 1
jmp 0x1004f5de
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x1004f609
mov dword [ebp - 0x80], 1
jmp 0x1004f60d
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
cmp dword [ebp - 0x80], eax
je 0x1004f625
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
jne 0x1004f625
and dword [ebp - 0x70], 0
jmp 0x1004f62c
mov dword [ebp - 0x70], 1
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp dword [ebp - 0x70], eax
jl 0x1004f642
mov dword [ebp - 0x90], 1
jmp 0x1004f649
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
cmp dword [ebp - 0x90], eax
jg 0x1004f662
mov dword [ebp - 0x98], 1
jmp 0x1004f669
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x98]
jl 0x1004f682
mov dword [ebp - 0xa0], 1
jmp 0x1004f689
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
sub eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x28]
cmp eax, dword [ecx]
jl 0x1004f6a7
mov dword [ebp - 0xa8], 1
jmp 0x1004f6ae
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp dword [ebp - 0xa8], eax
jg 0x1004f6c7
mov dword [ebp - 0xb0], 1
jmp 0x1004f6ce
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0xb69c93e3
jae 0x1004f6ee
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x1004f6ee
mov dword [ebp - 0xbc], 1
jmp 0x1004f6f5
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
imul eax, dword [ebp - 0xbc]
imul eax, eax, 0xa26c
mov ecx, dword [ebp - 0x38]
cmp eax, dword [ecx]
jle 0x1004f717
mov dword [ebp - 0x68], 1
jmp 0x1004f71b
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
cmp dword [ebp - 0x68], 0xfffffff8
jle 0x1004f735
mov dword [ebp - 0x5c], 1
jmp 0x1004f739
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
cmp dword [ebp - 0x5c], 0
je 0x1004f75a
xor eax, eax
je 0x1004f75a
mov dword [ebp - 0xc4], 1
jmp 0x1004f761
and dword [ebp - 0xc4], 0
cmp dword [ebp - 0xc4], 0xc33b
jle 0x1004f779
mov dword [ebp - 0xcc], 1
jmp 0x1004f780
and dword [ebp - 0xcc], 0
cmp dword [ebp - 0xcc], 0x6660
jge 0x1004f795
mov dword [ebp - 0x64], 1
jmp 0x1004f799
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
cmp dword [ebp - 0x64], 0
je 0x1004f7c1
mov eax, dword [ebp - 0xd4]
cmp dword [eax], 0
je 0x1004f7c1
mov dword [ebp - 0xe4], 1
jmp 0x1004f7c8
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xdc]
add eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x108]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret