Function at 0x1004ded6
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100727c7
call fcn.10070eb0
sub esp, 0x27c
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x1c], 0x33cf
cmp dword [ebp - 0x1c], 0x365d
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x48], dl
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
jle 0x1004df6e
push 0x6e2
call dword [sym.imp.GDI32.dll_SaveDC]
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0x788
mov esi, ebx
mov dword [ebp - 0x34], 0x796
mov ebx, dword [ebp - 0x24]
mov eax, esi
mov ecx, 0x10619858
xor eax, edi
cdq
push edx
push eax
call fcn.10024898
add esi, ebx
dec dword [ebp - 0x34]
jne 0x1004df2f
mov esi, dword [ebp - 0x30]
add ebx, esi
dec dword [ebp - 0x2c]
push 0
mov dword [ebp - 0x24], ebx
pop ebx
jne 0x1004df23
inc esi
mov dword [ebp - 0x30], esi
cmp esi, 0x7662
jl 0x1004df19
inc edi
cmp edi, 0x6a5b
jl 0x1004df16
jmp 0x1004df70
xor ebx, ebx
xor edi, edi
lea ecx, [ebp - 0x1d0]
inc edi
or esi, 0xffffffff
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], 0x8987f2fb
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], 0xa0246c38
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x3c], 0x1d77f172
mov dword [ebp - 0x3c], 0xfffffffe
push 3
call fcn.100249ad
mov dword [ebp - 0x3c], 0x758185f1
mov dword [ebp - 0x30], 0x82966b91
mov dword [ebp - 0x3c], 0xcdac3690
mov dword [ebp - 0x14], ebx
jmp 0x1004dfea
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x240], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1004dfdd
mov dword [ebp - 0x14], ebx
jmp 0x1004e008
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1d0]
mov dword [eax + ecx*4], 0xe7cc
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1004dff5
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004e01d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x34], ebx
jne 0x1004e028
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x30]
xor edx, edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
cmp ecx, eax
lea ecx, [ebp - 0x1d0]
setl dl
mov dword [ebp - 0x2c], edx
call fcn.10024a0f
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], 0x3176
jge 0x1004e08b
mov edx, 0x1000a310
mov ecx, 0x10619858
call fcn.100265af
jmp 0x1004e08b
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1d8]
push dword [ebp + 8]
movdqa xmm0, xmmword [0x1000a5e0]
lea ecx, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0xc4], ebx
push eax
push ebx
movdqu xmmword [ebp - 0x1e8], xmm0
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
call fcn.10026ace
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x34], eax
jne 0x1004e0ee
test eax, eax
mov eax, ebx
je 0x1004e0f0
mov eax, edi
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004e104
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea ecx, [ebp - 0xc4]
call fcn.10024a0f
mov dword [ebp - 0x28], 0xfffffff8
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x1c], 0x8070ade2
mov dword [ebp - 0x2c], 0xfffa
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], 0xfffffffc
mov dword [ebp - 0x34], 0x6c2e3a4c
mov dword [ebp - 0x30], 0xef8169c1
push 3
call fcn.100249ad
push 2
pop edx
mov dword [ebp - 4], edx
push 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], ebx
pop ecx
jmp 0x1004e167
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x260], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ecx
jl 0x1004e15a
mov dword [ebp - 0x14], ebx
jmp 0x1004e180
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x174]
mov dword [eax + ecx*4], edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1004e171
mov dword [ebp - 0x14], ebx
jmp 0x1004e198
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x250], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jl 0x1004e18b
cmp dword [ebp - 0x20], ebx
jne 0x1004e1ce
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
setge dl
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov ecx, 0xffff
mov esi, dword [ebp - 0x174]
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp - 0x20]
add eax, ecx
xor ecx, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
test eax, eax
mov eax, dword [ebp - 0x28]
sets cl
xor edx, edx
cmp ecx, eax
setg dl
xor ecx, ecx
sub edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
cmp edx, eax
setg cl
sub ecx, dword [ebp - 0x28]
neg ecx
sbb ecx, ecx
inc ecx
imul ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1004e276
mov dword [ebp - 0x20], 0xa7e8
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x30], 0xffff
test eax, eax
je 0x1004e260
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 0x20]
cmp eax, 0xfffffff7
setle cl
mov dword [esi + 8], ecx
jmp 0x1004e318
push 4
pop esi
push esi
lea ecx, [ebp - 0x1c4]
call fcn.100249ad
mov byte [ebp - 4], 3
lea eax, [ebp - 0x218]
push dword [ebp + 8]
mov dword [ebp - 0x34], 2
lea ecx, [ebp - 0x108]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x3c], 0xfffffff7
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x5697a12b
push ebx
movdqu xmmword [ebp - 0x228], xmm0
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
call fcn.10026ace
mov dword [ebp - 0x24], 0x8186f270
mov dword [ebp - 0x1c], ebx
jmp 0x1004e2f7
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c4]
mov dword [eax + ecx*4], 0xb
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x1004e2e4
inc dword [ebp - 0x34]
lea ecx, [ebp - 0x108]
dec dword [ebp - 0x24]
call fcn.10024a0f
lea ecx, [ebp - 0x1c4]
call fcn.10024a0f
or esi, 0xffffffff
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], esi
call fcn.10024a0f
push 3
lea ecx, [ebp - 0xd4]
call fcn.100249ad
push 4
pop ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x34], esi
push 2
call fcn.100249ad
push 3
mov dword [ebp - 0x14], ebx
pop edx
jmp 0x1004e36d
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xd4]
mov dword [eax + ecx*4], 0x5052061f
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jl 0x1004e35a
mov dword [ebp - 0x14], ebx
jmp 0x1004e388
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xc8], 0xade0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004e377
mov dword [ebp - 0x14], ebx
jmp 0x1004e3a3
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x138], 0x6c19
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jl 0x1004e392
mov dword [ebp - 0x14], ebx
jmp 0x1004e3c0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x150]
mov dword [eax + ecx*4], 0xfffffffc
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1004e3ad
mov eax, dword [ebp - 0xd4]
cmp dword [eax], ebx
je 0x1004e3fb
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], ebx
jne 0x1004e3e2
mov edx, ebx
cmp dword [ebp - 0xc8], ebx
je 0x1004e3e4
mov edx, edi
mov eax, dword [ebp - 0xd4]
xor ecx, ecx
cmp dword [eax], edx
sete cl
cmp ecx, dword [ebp - 0x134]
mov ecx, edi
jg 0x1004e3fd
mov ecx, ebx
mov eax, dword [ebp - 0x138]
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x130]
setl dl
xor ecx, ecx
cmp edx, eax
setne cl
xor edx, edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xd4]
cmp dword [eax], ecx
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 0x150]
setne dl
mov dword [eax + 4], edx
call fcn.10024a0f
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], esi
call fcn.10024a0f
mov eax, dword [0x100788ac]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], 0xfffffffd
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0xfffffffe
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], esi
push edi
mov dword [ebp - 0x34], eax
call fcn.100249ad
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x30], esi
push edi
call fcn.100249ad
push 2
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 6
call fcn.100249ad
mov dword [ebp - 0x4c], 0x269945c6
mov dword [ebp - 0x14], ebx
jmp 0x1004e4c9
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xfc]
mov dword [eax + ecx*4], 0x1abe8f21
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004e4b6
push 3
mov dword [ebp - 0x14], ebx
pop edx
jmp 0x1004e4e7
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x84], 0xdc2a82a1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jl 0x1004e4d6
mov dword [ebp - 0x14], ebx
jmp 0x1004e500
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa8]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004e4f1
mov dword [ebp - 0x14], ebx
jmp 0x1004e519
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x120]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1004e50a
mov eax, dword [ebp - 0xa8]
dec dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xfc]
add ecx, 0xffff34a4
mov dword [eax], ecx
lea eax, [ecx + 5]
test eax, eax
je 0x1004e54b
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x182b
setg cl
imul ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1004e569
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x120]
mov esi, dword [eax]
mov eax, dword [ebp - 0xa8]
lea ecx, [esi + 1]
add edx, dword [eax]
mov eax, dword [ebp - 0x120]
cmp esi, edx
mov edx, edi
cmovge edx, ebx
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x80]
cmp edx, eax
mov eax, dword [ebp - 0x30]
sete cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0xa8]
setg dl
sub edx, dword [eax]
neg edx
sbb edx, edx
xor eax, eax
inc edx
cmp edx, edi
setge al
xor ecx, ecx
imul edx, eax, 0xde45
mov eax, dword [ebp - 0x20]
cmp edx, eax
setle cl
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov eax, dword [ebp - 0x7c]
add eax, ecx
mov ecx, dword [ebp - 0x84]
add ecx, eax
je 0x1004e5f6
mov eax, dword [ebp - 0xfc]
cmp dword [eax], ebx
jne 0x1004e5fd
mov eax, edi
cmp dword [ebp - 0x1c], ebx
jne 0x1004e5ff
mov eax, ebx
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x120]
call fcn.10024a0f
lea ecx, [ebp - 0xa8]
call fcn.10024a0f
or esi, 0xffffffff
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], esi
call fcn.10024a0f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x14], 0xfffffffc
mov dword [ebp - 0x1c], 0x85c9
mov dword [ebp - 0x2c], esi
push edi
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call fcn.100249ad
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x20], 6
push edi
call fcn.100249ad
mov dword [ebp - 0x14], ebx
jmp 0x1004e686
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x114]
mov dword [eax + ecx*4], 0x27b1aa43
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004e673
mov dword [ebp - 0x14], ebx
jmp 0x1004e69f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x15c]
mov dword [eax + ecx*4], esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004e690
mov dword [ebp - 0x14], 0xfffffffc
cmp dword [ebp - 0x14], 0xe
jle 0x1004e7d0
mov eax, 0x35b5b06a
mov dword [ebp - 0x30], 0x4432
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x30], ebx
jne 0x1004e7b4
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], ebx
jne 0x1004e798
mov eax, dword [ebp - 0x38]
xor edx, edx
cmp eax, 0xa025
mov eax, dword [ebp - 0x38]
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x1c]
setge cl
xor edx, edx
cmp ecx, esi
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x38]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setg dl
xor ecx, ecx
cmp edx, eax
setl cl
add ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
sub ecx, 0x2506
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x4c], ecx
xor ecx, ecx
cmp dword [ebp - 0x4c], eax
setge cl
xor edx, edx
add ecx, 7
imul ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setne dl
xor ecx, ecx
cmp edx, eax
setg cl
xor eax, eax
cmp ecx, 0x2b9c
mov ecx, ebx
setne al
neg eax
cmp eax, dword [ebp - 0x30]
jne 0x1004e785
mov ecx, edi
mov eax, dword [ebp - 0x114]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, ebx
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x2c]
jg 0x1004e7b6
mov ecx, edi
mov eax, dword [ebp - 0x15c]
mov dword [eax], ecx
mov eax, 0x35b5b06a
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xe
jg 0x1004e6ba
mov dword [ebp - 0x20], ebx
jmp 0x1004e808
mov dword [ebp - 0x14], ebx
jmp 0x1004e800
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004e7fd
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jle 0x1004e7da
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], ebx
jle 0x1004e7d5
lea ecx, [ebp - 0x15c]
call fcn.10024a0f
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], esi
call fcn.10024a0f
cmp byte [ebp - 0x48], 0
je 0x1004ea7f
cmp dword [ebp - 0x34], edi
jne 0x1004ea7f
push dword [ebp + 8]
movdqa xmm0, xmmword [0x1000a610]
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 0xe4]
push ebx
movdqu xmmword [ebp - 0x1f8], xmm0
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
call fcn.10026ace
mov dword [ebp - 4], 8
mov dword [ebp - 0x28], 0xfb34
mov dword [ebp - 0x14], ebx
jmp 0x1004e89f
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x5c], 0xed423cb8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004e891
push 4
mov dword [ebp - 0x14], ebx
pop ecx
jmp 0x1004e8bd
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x218], 0x4484a863
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ecx
jl 0x1004e8ac
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jg 0x1004ea58
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xebda
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x80090ae7
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ebx
jmp 0x1004e8fa
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x54], esi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x1004e8f0
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jne 0x1004e912
cmp dword [ebp - 0x30], ebx
je 0x1004e919
mov eax, edi
cmp dword [ebp - 0x2c], ebx
jne 0x1004e91b
mov eax, ebx
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
add eax, 0x4d4
cmp eax, 6
setge cl
xor eax, eax
cmp ecx, 0x87a7
setg al
xor edx, edx
add eax, 0xe989a9ac
mov dword [ebp - 0x5c], eax
add eax, 0xfffffffa
cmp eax, 0xfffffffa
mov eax, dword [ebp - 0x30]
setne dl
xor ecx, ecx
cmp edx, eax
mov edx, dword [ebp - 0x14]
setg cl
sub edx, ecx
xor ecx, ecx
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
cmp edx, eax
mov eax, dword [ebp - 0x20]
setg cl
mov dword [ebp - 0x54], ecx
mov dword [eax + 4], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x30]
cmp eax, 0xeb25
setl cl
cmp ecx, dword [ebp - 0x38]
jle 0x1004ea34
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x12c]
push edi
call fcn.100249ad
mov dword [ebp - 0x1c], ebx
jmp 0x1004e9bd
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x12c]
mov dword [eax + ecx*4], 0x4f61
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x1004e9aa
mov eax, dword [ebp - 0x5c]
push 4
pop eax
cmp dword [ebp - 0x38], eax
jge 0x1004e9df
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x12c]
cmp dword [eax], ecx
mov eax, ebx
je 0x1004e9e1
mov eax, edi
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
cmp dword [edx + 4], ebx
je 0x1004ea08
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
cmp dword [edx + 4], eax
sete cl
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x218]
je 0x1004ea08
mov eax, dword [ebp - 0x54]
mov eax, dword [ebp - 0x12c]
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
cmp dword [eax], ebx
mov eax, dword [ebp - 0x5c]
setg cl
sub edx, ecx
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x12c]
call fcn.10024a0f
jmp 0x1004ea4c
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004ea49
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
dec dword [ebp - 0x28]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jle 0x1004e8d7
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
call fcn.10024a0f
mov eax, dword [ebp + 8]
push 4
pop ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x100788ac
mov dword [ebp - 0x20], 0x8094a188
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x14], 0xfffffff6
mov dword [ebp - 0x2c], 0xa41a80d1
mov dword [ebp - 0x28], 0xa3205f5a
mov dword [ebp - 0x20], 0xa9413e45
push 3
call fcn.100249ad
mov dword [ebp - 0x1c], ebx
jmp 0x1004eac7
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1a8]
mov dword [eax + ecx*4], 0xc095
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x1004eab4
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [ebp - 0x14]
imul ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
setne dl
xor ecx, ecx
imul edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp eax, edi
setl cl
sub ecx, 3
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp ecx, edi
setg al
cmp eax, dword [ebp - 0x14]
je 0x1004eb2b
mov edx, ebx
cmp dword [ebp - 0x2c], ebx
je 0x1004eb2d
mov edx, edi
mov dword [ebp - 0x20], edi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
cmp edx, eax
setg cl
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x20], eax
je 0x1004eb5a
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004ebb6
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
jmp 0x1004ebb6
push 2
mov dword [ebp - 0x24], ebx
pop eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jl 0x1004eba1
mov dword [ebp - 0x28], ebx
jmp 0x1004eb97
mov dword [ebp - 0x20], ebx
jmp 0x1004eb8f
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004eb8c
push ebx
push ebx
push 0x2063
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 2
pop eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], eax
jle 0x1004eb72
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], eax
jle 0x1004eb6d
dec dword [ebp - 0x14]
jns 0x1004eb68
mov dword [ebp - 0x20], 0x11
jmp 0x1004ebb0
inc dword [ebp - 0x24]
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xc
jg 0x1004ebaa
lea ecx, [ebp - 0x1a8]
call fcn.10024a0f
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x34]
jge 0x1004f3b7
push edi
lea ecx, [ebp - 0x168]
call fcn.100249ad
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x14], ebx
jmp 0x1004ebf4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x168]
mov dword [eax + ecx*4], 0x9f9b3198
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004ebe1
mov dword [ebp - 0x14], ebx
jmp 0x1004ec0f
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x26c], 0xfffffffa
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1004ebfe
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x168]
mov dword [eax], ebx
call fcn.10024a0f
push dword [ebp + 8]
movdqa xmm0, xmmword [0x1000a610]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x144], ebx
push eax
mov esi, 0x100788b0
mov dword [ebp - 0x140], ebx
push ebx
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x20], esi
movdqu xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x13c], ebx
call fcn.10026ace
mov dword [ebp - 0x1c], ebx
jmp 0x1004ec82
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x58], 0xffffffff
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x1004ec74
mov dword [ebp - 0x58], ebx
jmp 0x1004eca6
mov dword [ebp - 0x24], 0xe55059b8
mov dword [ebp - 0x4c], 0x1bab5934
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
inc dword [ebp - 0x58]
cmp dword [ebp - 0x58], 3
jle 0x1004ec8c
lea ecx, [ebp - 0x144]
call fcn.10024a0f
cmp dword [ebp - 0x44], 0
jle 0x1004f207
push 4
pop ecx
mov eax, dword [esi]
mov dword [ebp - 0x40], 0xb13eca4f
mov dword [ebp - 0x40], 6
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x40], 0x164caf14
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], ebx
jmp 0x1004ecf6
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x278], edi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x1004ece9
inc dword [ebp - 0x24]
add esi, ecx
mov dword [ebp - 0x14], 0xfffffff8
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], ebx
jmp 0x1004ed35
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004ed32
push ebx
push ebx
push 0x1caf
push 0x1a4f
call dword [sym.imp.USER32.dll_DefWindowProcA]
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xfffffff6
je 0x1004ed17
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], 7
jge 0x1004eef0
push 3
lea ecx, [ebp - 0x9c]
call fcn.100249ad
mov dword [ebp - 4], 9
push 0xfffffffffffffffe
pop eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x2c], 0x2c4475ee
mov dword [ebp - 0x30], 0x5761ac7e
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x1c], ebx
jmp 0x1004ed94
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x9c]
mov dword [eax + ecx*4], 0xbad8
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x1004ed81
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x68], 2
jg 0x1004eeac
mov eax, dword [ebp - 0x9c]
xor ecx, ecx
mov dword [ebp - 0x40], 0xad64de8c
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x40], 0xbd77dfcc
mov eax, dword [eax]
mov dword [ebp - 0x24], 0x5dd4d14b
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x9c]
add eax, 0x59bb7a14
push 0xfffffffffffffff7
cmp eax, dword [edx + esi*4]
pop eax
setne cl
sub eax, ecx
cmp eax, dword [ebp - 0x64]
jge 0x1004ee03
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x9c]
cmp dword [eax + ecx*4], ebx
mov ecx, ebx
je 0x1004ee05
mov ecx, edi
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x9c]
mov eax, dword [esi + eax*4]
add eax, ecx
xor ecx, ecx
cmp dword [esi + edx*4], eax
setge cl
imul eax, ecx, 0xffff
add eax, 0x35da2a0c
cmp eax, dword [esi + edi*4]
jl 0x1004ee8f
cmp dword [ebp - 0x68], ebx
jne 0x1004ee8f
cmp dword [ebp - 0x60], ebx
jne 0x1004ee8f
push 4
pop esi
mov dword [ebp - 0x40], 0x18e188a7
lea ecx, [ebp - 0x180]
push esi
call fcn.100249ad
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x1c], ebx
jmp 0x1004ee6c
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x180]
mov dword [eax + ecx*4], 1
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x1004ee59
mov eax, dword [ebp - 0x180]
xor ecx, ecx
cmp dword [eax + 0xc], ebx
setne cl
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x180]
call fcn.10024a0f
jmp 0x1004ee9c
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x40], ebx
dec dword [ebp - 0x24]
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], 2
push 1
pop edi
jle 0x1004eda7
mov dword [ebp - 0x30], 3
cmp dword [ebp - 0x30], ebx
jl 0x1004eed1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004eecc
push 0x10d0
call dword [sym.imp.USER32.dll_ShowCaret]
dec dword [ebp - 0x30]
jns 0x1004eeb8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.10024a0f
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 7
jl 0x1004ed48
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
lea ecx, [ebp - 0x78]
push 3
mov dword [ebp - 0x40], eax
call fcn.100249ad
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xd8], edi
push edi
call fcn.100249ad
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x14], ebx
jmp 0x1004ef30
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x78]
mov dword [eax + ecx*4], edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1004ef24
mov dword [ebp - 0x14], ebx
jmp 0x1004ef4e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xf0]
mov dword [eax + ecx*4], 0xfffffff9
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1004ef3b
mov eax, dword [ebp - 0x78]
mov dword [eax], 0xca631852
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], 0x10
je 0x1004f1d3
mov eax, dword [ebp - 0x78]
or esi, 0xffffffff
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], 0x8e17c109
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x24], 0x7e526954
mov dword [ebp - 0x2c], 0xf32f520a
mov dword [ebp - 0x38], 0x8e7e
push 3
call fcn.100249ad
mov dword [ebp - 0x50], 0xfffffff7
mov dword [ebp - 0x14], ebx
jmp 0x1004efba
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18c]
mov dword [eax + ecx*4], 0xfff8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1004efa7
push 4
mov dword [ebp - 0x14], ebx
pop ecx
jmp 0x1004efd5
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x288], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ecx
jl 0x1004efc8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x78]
sub edx, 0xffff0a76
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, dword [eax]
setle cl
xor eax, eax
cmp ecx, 0x7990
setg al
xor ecx, ecx
cmp eax, 0x30df
mov eax, dword [ebp - 0x28]
setge cl
add eax, ecx
je 0x1004f018
mov ecx, dword [ebp - 0x78]
mov edx, edi
cmp dword [ecx + 4], ebx
jne 0x1004f01a
mov edx, ebx
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [ecx + 8], edx
mov ecx, dword [ebp - 0x78]
setge al
cmp eax, dword [ecx]
jge 0x1004f033
mov edx, edi
cmp dword [ebp - 0x28], ebx
jne 0x1004f035
mov edx, ebx
mov eax, dword [ebp - 0xd8]
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x78]
add edx, 9
cmp edx, 0x8cff
setl cl
xor edx, edx
cmp ecx, dword [eax]
setle dl
xor ecx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
cmp eax, edx
setge cl
cmp ecx, dword [ebp - 0x28]
jl 0x1004f06d
mov edx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x1004f06f
mov edx, edi
mov eax, dword [ebp - 0x28]
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x28]
cmp edx, eax
mov eax, dword [ebp - 0xf0]
setg cl
lea edx, [ecx + 0x7f4a]
xor ecx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
cmp edx, eax
setge cl
cmp ecx, edi
jl 0x1004f15b
mov dword [ebp - 0x30], 0x699f
mov dword [ebp - 0x14], 0xfffffff8
mov dword [ebp - 0x50], 0x37ff
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp esi, eax
sbb eax, eax
xor ecx, ecx
neg eax
cmp eax, 0xfffe
mov eax, dword [ebp - 0x78]
setne cl
cmp ecx, dword [eax]
je 0x1004f0da
mov eax, ebx
cmp dword [ebp - 0x24], ebx
je 0x1004f0dc
mov eax, edi
push 4
pop ecx
cmp ecx, eax
mov eax, dword [ebp - 0x28]
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, eax
mov eax, dword [ebp - 0x38]
setle dl
xor ecx, ecx
cmp edx, eax
setle cl
imul ecx, dword [ebp - 0x2c]
inc dword [ebp - 0x2c]
test ecx, ecx
je 0x1004f10a
mov edx, edi
cmp dword [ebp - 0x14], ebx
jne 0x1004f10c
mov edx, ebx
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp edx, eax
setg cl
xor edx, edx
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18c]
cmp ecx, dword [eax + 8]
mov eax, dword [ebp - 0x30]
setle dl
add eax, edx
jne 0x1004f131
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x78]
cmp dword [eax], ecx
mov eax, dword [ebp - 0x14]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0xf0]
setg cl
mov dword [eax], ecx
jmp 0x1004f1b8
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x50], 0xd6df81f9
mov dword [ebp - 0x50], 0x1158a35c
mov dword [ebp - 0x24], 0xfffffffc
mov dword [ebp - 0x38], 0x19
jmp 0x1004f1b2
mov dword [ebp - 0x50], 0x42a26b13
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x50], 0xfffffffb
mov dword [ebp - 0x50], 0xa33fe8f1
mov dword [ebp - 0x28], ebx
jmp 0x1004f1a6
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x248], ebx
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 2
jl 0x1004f199
dec dword [ebp - 0x24]
dec dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0xa
jge 0x1004f17c
lea ecx, [ebp - 0x18c]
call fcn.10024a0f
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x10
jne 0x1004ef72
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0xf0]
call fcn.10024a0f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10024a0f
push 4
pop ecx
add esi, ecx
cmp dword [ebp - 0x40], 0
jne 0x1004f1f8
add esi, 8
add esi, dword [ebp - 0x3c]
dec dword [ebp - 0x44]
mov dword [ebp - 0x20], esi
jne 0x1004ecc4
push dword [ebp + 8]
movdqa xmm0, xmmword [0x1000a5e0]
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0xb4], ebx
push eax
push ebx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb0], ebx
movdqu xmmword [ebp - 0x208], xmm0
mov dword [ebp - 0xac], ebx
call fcn.10026ace
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x24], eax
jne 0x1004f26b
test eax, eax
mov eax, ebx
je 0x1004f26d
mov eax, edi
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004f281
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea ecx, [ebp - 0xb4]
call fcn.10024a0f
mov ecx, dword [ebp - 0x20]
mov esi, dword [esi]
push 4
pop edx
add ecx, edx
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x44], ebx
jmp 0x1004f2b6
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x1d8], 0x801897a4
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 2
jl 0x1004f2a5
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1004f2db
push ebx
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [ebp - 0x20]
push 4
pop edx
mov eax, dword [ecx]
add ecx, edx
test eax, eax
jne 0x1004f3b7
cmp byte [ebp - 0x48], al
je 0x1004f2fd
cmp dword [ebp - 0x34], edi
jne 0x1004f2fd
mov edx, dword [ebp + 8]
lea eax, [esi + 0x10]
push 4
add dword [edx + 8], eax
pop edx
mov eax, dword [ecx]
add ecx, edx
mov dword [ebp - 0x34], eax
push esi
mov eax, dword [ecx]
add ecx, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], ecx
call fcn.10054a09
pop ecx
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], ebx
push eax
push esi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call fcn.1005313d
mov ecx, dword [ebp - 0x90]
mov edx, ebx
mov dword [ebp - 0x24], edx
test esi, esi
jle 0x1004f39f
mov eax, edx
and eax, 0x80000001
jns 0x1004f360
dec eax
or eax, 0xfffffffe
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x34]
add eax, edx
add eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x3c]
jmp 0x1004f375
lea eax, [edx + 1]
cdq
idiv esi
cmp word [ecx + edx*2], bx
jne 0x1004f372
mov eax, dword [ebp - 0x20]
mov word [ecx + edx*2], di
mov ecx, dword [ebp - 0x54]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x24]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x24], edx
cmp edx, esi
jl 0x1004f352
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x54]
mov dword [edi], esi
mov dword [edi + 4], eax
test ecx, ecx
je 0x1004f3ba
push ecx
call fcn.10059657
pop ecx
jmp 0x1004f3ba
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret