Function at 0x1004efba
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0x15d7249a
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x19c], 0xfffffffe
mov dword [ebp - 0x198], 0xfffffffe
mov dword [ebp - 0x194], 0xfffffffe
mov dword [ebp - 0x190], 0xfffffffe
mov dword [ebp - 0x1d0], 1
mov dword [ebp - 0x3c], 0
jmp 0x1004f023
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 3
jge 0x1004f039
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x18c], 0xea5d6c05
jmp 0x1004f01c
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x1004f054
push 0
push 0
push 0x205c
call dword [sym.imp.ADVAPI32.dll_CopySid]
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x18c], 0xd
jmp 0x1004f082
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x18c]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x18c], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x18c], 2
jl 0x1004f164
mov dword [ebp - 0x1ac], 0xfffffffa
mov dword [ebp - 0x1a8], 0xfffffffa
mov dword [ebp - 0x1a4], 0xfffffffa
mov dword [ebp - 0x1a0], 0xfffffffa
mov dword [ebp - 0x28], 0x6f5a9c4c
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 0x1e0], 0xfe23a266
mov dword [ebp - 0x28], 0
jmp 0x1004f0e9
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
jg 0x1004f146
mov dword [ebp - 0x1e8], 0xfffffffd
mov dword [ebp - 0x1f0], 7
mov dword [ebp - 0x1f8], 0xfffffffa
mov dword [ebp - 0x1dc], 0x20b963ab
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x1ac]
mov dword [ebp + ecx*4 - 0x1ac], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x19c]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x19c], eax
jmp 0x1004f0e2
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x1004f15f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
jmp 0x1004f067
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004f46c
mov dword [ebp - 0x34], 0xfffffff8
mov dword [ebp - 0x30], 6
mov dword [ebp - 0xc], 0
jmp 0x1004f18e
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x1004f1a4
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x14c], 0xa2cb
jmp 0x1004f187
mov dword [ebp - 0xc], 0
jmp 0x1004f1b4
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x1004f1c7
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x60], 0xce6bb2f1
jmp 0x1004f1ad
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14c]
mov dword [ebp - 0x1bc], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14c]
mov dword [ebp - 0x1fc], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14c], 1
jl 0x1004f209
mov dword [ebp - 0x150], 1
jmp 0x1004f210
and dword [ebp - 0x150], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14c]
mov dword [ebp - 0x1b0], eax
mov eax, 0x2a17d0b0
cmp eax, 0x531f145b
jl 0x1004f23b
mov dword [ebp - 0x11c], 1
jmp 0x1004f242
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 0x85c9e53
jl 0x1004f25a
mov dword [ebp - 0x140], 1
jmp 0x1004f261
and dword [ebp - 0x140], 0
cmp dword [ebp - 0x140], 0x3b28
je 0x1004f279
mov dword [ebp - 0x124], 1
jmp 0x1004f280
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x124], eax
jle 0x1004f297
mov dword [ebp - 0xe8], 1
jmp 0x1004f29e
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0xe8]
add eax, 0xd66c
mov dword [ebp - 0x70], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x70]
mov dword [ebp + eax - 0x60], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14c]
cmp eax, dword [ebp - 0x70]
jle 0x1004f2d7
mov dword [ebp - 0xf0], 1
jmp 0x1004f2de
and dword [ebp - 0xf0], 0
cmp dword [ebp - 0xf0], 0xef906d8b
jne 0x1004f2f3
mov dword [ebp - 0x78], 1
jmp 0x1004f2f7
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x30], 0x14
jmp 0x1004f30e
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffed
jl 0x1004f458
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x90], 0x9080254f
mov dword [ebp - 0x34], 0
jmp 0x1004f339
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jg 0x1004f453
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x158], 0xcbadbefc
mov dword [ebp - 0x2c], 0
jmp 0x1004f364
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x1004f44e
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp + eax*4 - 0x60]
sub eax, 0xe6dabac8
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xf8]
mov dword [ebp + eax*4 - 0x60], ecx
cmp dword [ebp - 0xf8], 0
je 0x1004f3a9
push 4
pop eax
test eax, eax
je 0x1004f3a9
mov dword [ebp - 0x100], 1
jmp 0x1004f3b0
and dword [ebp - 0x100], 0
mov dword [ebp - 0x80], 0x4491d0b
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x100]
jne 0x1004f3ce
mov dword [ebp - 0x88], 1
jmp 0x1004f3d5
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x90]
add eax, 0x42506ed5
neg eax
cmp dword [ebp - 0x88], eax
jg 0x1004f3f6
mov dword [ebp - 0x108], 1
jmp 0x1004f3fd
and dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 0xc178
jge 0x1004f415
mov dword [ebp - 0x110], 1
jmp 0x1004f41c
and dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x110], eax
jge 0x1004f436
mov dword [ebp - 0x98], 1
jmp 0x1004f43d
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x158], eax
jmp 0x1004f35d
jmp 0x1004f332
jmp 0x1004f307
push 0xd14
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x1004fd4b
mov dword [ebp - 4], 0xa095a979
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xfffffffb
mov dword [ebp - 0x13c], 0x199e
mov dword [ebp - 0x178], 0x7198f9f0
mov dword [ebp - 0x174], 0x7198f9f0
mov dword [ebp - 0x170], 0x7198f9f0
mov dword [ebp - 0x16c], 0x7198f9f0
mov dword [ebp - 0x38], 0
jmp 0x1004f4d8
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
jge 0x1004f4eb
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x20], 0xde450bb1
jmp 0x1004f4d1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 4], 0
jne 0x1004f630
cmp dword [ebp - 4], 0xffffffff
jg 0x1004f510
mov dword [ebp - 0x118], 1
jmp 0x1004f517
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x118], eax
jle 0x1004f52e
mov dword [ebp - 0xa0], 1
jmp 0x1004f535
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xa0], eax
jle 0x1004f54f
cmp dword [ebp - 4], 0
jne 0x1004f54f
and dword [ebp - 0x120], 0
jmp 0x1004f559
mov dword [ebp - 0x120], 1
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x120]
je 0x1004f574
push 6
pop eax
test eax, eax
je 0x1004f574
mov dword [ebp - 0x58], 1
jmp 0x1004f578
and dword [ebp - 0x58], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0x20], ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x58], eax
jg 0x1004f599
mov dword [ebp - 0xa8], 1
jmp 0x1004f5a0
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xa8], eax
jle 0x1004f5b7
mov dword [ebp - 0x128], 1
jmp 0x1004f5be
and dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 0xfffffffd
jge 0x1004f5d3
mov dword [ebp - 0xb0], 1
jmp 0x1004f5da
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0x14ad
je 0x1004f5f2
mov dword [ebp - 0x130], 1
jmp 0x1004f5f9
and dword [ebp - 0x130], 0
cmp dword [ebp - 0x130], 9
je 0x1004f60e
mov dword [ebp - 0x138], 1
jmp 0x1004f615
and dword [ebp - 0x138], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x4c]
cmp dword [ebp - 0x138], eax
jge 0x1004f630
and dword [ebp - 0xbc], 0
jmp 0x1004f63a
mov dword [ebp - 0xbc], 1
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xbc], eax
jl 0x1004f651
mov dword [ebp - 0x104], 1
jmp 0x1004f658
and dword [ebp - 0x104], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x4c]
imul eax, dword [ebp - 0x104]
push 4
pop ecx
imul ecx, ecx, 3
imul eax, dword [ebp + ecx - 0x4c]
cmp eax, dword [ebp - 4]
jg 0x1004f685
mov dword [ebp - 0xc4], 1
jmp 0x1004f68c
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc4], eax
jg 0x1004f6ad
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x20], 0
jne 0x1004f6ad
and dword [ebp - 0x144], 0
jmp 0x1004f6b7
mov dword [ebp - 0x144], 1
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x4c]
cmp dword [ebp - 0x144], eax
je 0x1004f6d5
mov dword [ebp - 0xcc], 1
jmp 0x1004f6dc
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0xcc]
imul eax, eax, 0xfff6
cmp eax, 0x85f402be
jb 0x1004f6ff
mov dword [ebp - 0x10c], 1
jmp 0x1004f706
and dword [ebp - 0x10c], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x10c]
mov dword [ebp + eax - 0x4c], ecx
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [ebp + eax - 0x4c]
add eax, dword [ebp + ecx - 0x20]
mov dword [ebp - 0xd4], eax
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0xd4]
mov dword [ebp + eax - 0x4c], ecx
cmp dword [ebp - 0xd4], 0
je 0x1004f81b
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x4c]
mov dword [ebp - 0x1cc], eax
push 4
pop eax
imul eax, eax, 3
imul eax, dword [ebp + eax - 0x4c], 0x93a5
mov dword [ebp - 0x12c], eax
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x12c]
mov dword [ebp + eax - 0x4c], ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x12c], eax
jg 0x1004f798
mov dword [ebp - 0xdc], 1
jmp 0x1004f79f
and dword [ebp - 0xdc], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
cmp dword [ebp - 0xdc], eax
jl 0x1004f7ca
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20], 0
je 0x1004f7ca
mov dword [ebp - 0x114], 1
jmp 0x1004f7d1
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x14], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
cmp dword [ebp - 0x14], eax
jne 0x1004f7f5
mov dword [ebp - 0xe4], 1
jmp 0x1004f7fc
and dword [ebp - 0xe4], 0
imul eax, dword [ebp - 0xe4], 0x7ddc
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x1004f81b
cmp dword [ebp - 0x14], 0
jne 0x1004f828
xor eax, eax
jne 0x1004f828
and dword [ebp - 0xec], 0
jmp 0x1004f832
mov dword [ebp - 0xec], 1
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x20]
sub eax, dword [ebp - 0xec]
je 0x1004f85a
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x20], 0
je 0x1004f85a
mov dword [ebp - 0x64], 1
jmp 0x1004f85e
and dword [ebp - 0x64], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
cmp dword [ebp - 0x64], eax
jne 0x1004f87d
push 0xfffffffffffffffe
pop eax
test eax, eax
jne 0x1004f87d
and dword [ebp - 0xf4], 0
jmp 0x1004f887
mov dword [ebp - 0xf4], 1
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xf4]
add ecx, dword [ebp + eax - 0x20]
mov dword [ebp - 0x134], ecx
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x134]
mov dword [ebp + eax - 0x20], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x134]
je 0x1004f8c4
mov dword [ebp - 0xfc], 1
jmp 0x1004f8cb
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xfc]
cmp eax, 0xa929
jl 0x1004fa41
mov dword [ebp - 0xc0], 0xffffffff
mov dword [ebp - 0x10], 0
jmp 0x1004f8f9
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x1004f90f
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x168], 0xbaf34c2e
jmp 0x1004f8f2
mov dword [ebp - 0x10], 0
jmp 0x1004f91f
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x1004f935
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x20c], 0
jmp 0x1004f918
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20], 0xfffa
ja 0x1004f951
mov dword [ebp - 0xb4], 1
jmp 0x1004f958
and dword [ebp - 0xb4], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp + eax - 0x4c]
jne 0x1004f976
mov dword [ebp - 0xc8], 1
jmp 0x1004f97d
and dword [ebp - 0xc8], 0
xor eax, eax
jne 0x1004f99a
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x168], 0
jne 0x1004f99a
and dword [ebp - 0xb8], 0
jmp 0x1004f9a4
mov dword [ebp - 0xb8], 1
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x4c]
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0x168]
add ecx, dword [ebp - 0xb8]
add eax, ecx
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
imul eax, dword [ebp - 0xc8]
imul eax, eax, 0x12ac
neg eax
je 0x1004f9f9
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x4c], 0
je 0x1004f9f9
mov dword [ebp - 0xd0], 1
jmp 0x1004fa00
and dword [ebp - 0xd0], 0
cmp dword [ebp - 0xd0], 0xffffffff
jle 0x1004fa15
mov dword [ebp - 0xd8], 1
jmp 0x1004fa1c
and dword [ebp - 0xd8], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x168]
add eax, dword [ebp - 0xd8]
push 4
pop ecx
imul ecx, ecx, 3
mov dword [ebp + ecx - 0x20c], eax
jmp 0x1004fd2f
mov dword [ebp - 8], 0x75ac3517
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push 4
pop ecx
imul ecx, ecx, 0
imul eax, dword [ebp + ecx - 0x20]
sub eax, 0x19fdee1
je 0x1004fa86
cmp dword [ebp - 8], 0
je 0x1004fa86
mov dword [ebp - 0xe0], 1
jmp 0x1004fa8d
and dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0xffffffff
jg 0x1004fa9f
mov dword [ebp - 0x68], 1
jmp 0x1004faa3
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x1004fac5
cmp dword [ebp - 0x50], 0
je 0x1004fac5
mov dword [ebp - 0x154], 1
jmp 0x1004facc
and dword [ebp - 0x154], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 8]
sub eax, 0xfacdc9f
push 4
pop ecx
imul ecx, ecx, 3
cmp eax, dword [ebp + ecx - 0x178]
je 0x1004fb0c
push 0xfffffffffffffff7
pop eax
test eax, eax
je 0x1004fb0c
mov dword [ebp - 0x74], 1
jmp 0x1004fb10
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x74], eax
jge 0x1004fb2a
mov eax, 0x9c35
test eax, eax
je 0x1004fb2a
mov dword [ebp - 0x7c], 1
jmp 0x1004fb2e
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x7c], eax
jge 0x1004fb42
mov dword [ebp - 0x84], 1
jmp 0x1004fb49
and dword [ebp - 0x84], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x178]
cmp dword [ebp - 0x84], eax
jl 0x1004fb67
mov dword [ebp - 0x5c], 1
jmp 0x1004fb6b
and dword [ebp - 0x5c], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0x4c], ecx
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x178]
cmp dword [ebp - 0x5c], eax
jg 0x1004fb96
mov dword [ebp - 0x8c], 1
jmp 0x1004fb9d
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x8c], eax
jne 0x1004fbb4
mov dword [ebp - 0x94], 1
jmp 0x1004fbbb
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x94]
jg 0x1004fbd2
mov dword [ebp - 0x9c], 1
jmp 0x1004fbd9
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 8]
imul ecx, dword [ebp - 0x9c], 0xfffffffc
sub eax, ecx
je 0x1004fcbc
mov dword [ebp - 0x17c], 0x609e5b73
mov dword [ebp - 0x15c], 0x825d0d30
mov dword [ebp - 0x160], 0xa4768e4f
mov dword [ebp - 4], 0
jmp 0x1004fc19
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x31
jl 0x1004fcba
mov dword [ebp - 0x54], 0x64f5e99a
mov dword [ebp - 0xac], 0x9a15fbe5
mov dword [ebp - 0xa4], 0xa1cda016
cmp dword [ebp - 8], 0
je 0x1004fc46
jmp 0x1004fcba
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x1b4], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20], 0
je 0x1004fc98
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x1004fc98
cmp dword [ebp - 0xac], 0
je 0x1004fc98
mov dword [ebp - 0x180], 1
jmp 0x1004fc9f
and dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x160], 0xfffffff9
jmp 0x1004fc12
jmp 0x1004fd19
mov dword [ebp - 8], 0x54f57eb9
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 8]
mov dword [ebp + eax - 0x4c], ecx
mov dword [ebp - 4], 0
jmp 0x1004fce0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1d
jl 0x1004fd19
mov dword [ebp - 0x14], 0
jmp 0x1004fcf6
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
jg 0x1004fd17
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1004fd15
push 0x247
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1004fcef
jmp 0x1004fcd9
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
shl ecx, 1
mov eax, dword [ebp + eax - 0x178]
mov dword [ebp + ecx - 0x4c], eax
push 0x1846
push 0xe5b
push 0x1efa
push 0x2404
push 0
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov esp, ebp
pop ebp
ret