Function at 0x1002b6c6
Capabilities:
Get file system object information
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002bf69
mov dword [ebp - 0x178], 0x1c7b
mov dword [ebp - 0x154], 0x51dba339
mov dword [ebp - 0x78], 6
mov dword [ebp - 0x170], 0xfffffffa
mov dword [ebp - 0x144], 7
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x16c], 0x950c
mov dword [ebp - 0x10], 0
jmp 0x1002b72b
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x1002b741
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x1e4], 0xffffffff
jmp 0x1002b724
mov dword [ebp - 0x10], 0
jmp 0x1002b751
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1002b767
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x174], 1
jmp 0x1002b74a
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
je 0x1002b787
mov eax, dword [ebp - 0x78]
inc eax
je 0x1002b787
xor eax, eax
inc eax
je 0x1002b787
mov dword [ebp - 0xc8], 1
jmp 0x1002b78e
and dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 0xffffffff
jl 0x1002b7a3
mov dword [ebp - 0xf0], 1
jmp 0x1002b7aa
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0xf0], eax
jle 0x1002b7c1
mov dword [ebp - 0x8c], 1
jmp 0x1002b7c8
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x144]
sub eax, dword [ebp - 0x8c]
cmp eax, 7
jne 0x1002b7e5
mov dword [ebp - 0xf8], 1
jmp 0x1002b7ec
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x178]
cmp dword [ebp - 0xf8], eax
jle 0x1002b806
mov dword [ebp - 0x14c], 1
jmp 0x1002b80d
and dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x188], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x174], 0
je 0x1002b832
cmp dword [ebp - 0x154], 0
jne 0x1002b844
cmp dword [ebp - 0x16c], 0
jne 0x1002b844
and dword [ebp - 0x94], 0
jmp 0x1002b84e
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x40], 0x8c6a53d0
mov dword [ebp - 0x40], 0xfffffffe
jmp 0x1002b86e
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x1002b9ee
mov dword [ebp - 0x24], 0x1836ccb0
mov dword [ebp - 0x60], 0
jmp 0x1002b88f
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 2
jge 0x1002b8a5
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x140], 0x88a137b1
jmp 0x1002b888
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002b8be
push 0x2555
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x24], 1
jmp 0x1002b8ce
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x1002b9e9
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x9c], 0xfffffff9
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + eax - 0x140]
mov dword [ebp + ecx*4 - 0x140], eax
mov dword [ebp - 0x48], 0xffffffed
jmp 0x1002b910
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x12
jl 0x1002b9e4
mov dword [ebp - 0x6c], 0x3717be9f
mov dword [ebp - 0x6c], 0xffffffe3
jmp 0x1002b931
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0xa
jle 0x1002b9df
mov dword [ebp - 0x50], 0xcd9d75
mov dword [ebp - 0x50], 1
jmp 0x1002b952
mov eax, dword [ebp - 0x50]
dec eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jl 0x1002b9d0
mov dword [ebp - 0x68], 0xc1da7bc9
mov dword [ebp - 0x68], 0
jmp 0x1002b96f
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 1
jg 0x1002b9b0
mov eax, dword [ebp - 0x24]
cmp dword [ebp + eax*4 - 0x140], 0
jne 0x1002b998
mov eax, dword [ebp - 0x24]
cmp dword [ebp + eax*4 - 0x140], 0
jne 0x1002b998
and dword [ebp - 0x100], 0
jmp 0x1002b9a2
mov dword [ebp - 0x100], 1
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x9c], eax
jmp 0x1002b968
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x1002b9cb
push 0x10d3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1002b94b
mov dword [ebp - 0x9c], 0xa2d34caa
jmp 0x1002b92a
jmp 0x1002b909
jmp 0x1002b8c7
jmp 0x1002b867
mov dword [ebp - 4], 0x469ad59e
mov dword [ebp - 0x74], 0x9a46bb21
mov dword [ebp - 0xe4], 0xc59458d8
mov dword [ebp - 0x10c], 1
mov dword [ebp - 8], 0
jmp 0x1002ba20
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x1002ba33
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xc], 1
jmp 0x1002ba19
mov dword [ebp - 8], 0
jmp 0x1002ba43
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1002ba59
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x184], 0xafd208dd
jmp 0x1002ba3c
mov dword [ebp - 8], 0
jmp 0x1002ba69
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x1002ba7f
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1c8], 0x5bcd
jmp 0x1002ba62
mov dword [ebp - 4], 0
jmp 0x1002ba8f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x1002bdc0
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x18], 0
jmp 0x1002bab0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1002bac6
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x1a8], 0x59653e3f
jmp 0x1002baa9
mov dword [ebp - 0x18], 0
jmp 0x1002bad6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x1002baec
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x19c], 0xb5a26cde
jmp 0x1002bacf
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0xc], 0
je 0x1002bbc8
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0xc], 0
jne 0x1002bba0
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0xc], 0xffffffff
jb 0x1002bb25
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0xc], 0
jne 0x1002bb25
and dword [ebp - 0x108], 0
jmp 0x1002bb2f
mov dword [ebp - 0x108], 1
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0xc]
cmp dword [ebp - 0x108], eax
jle 0x1002bb59
mov eax, 0xb719
test eax, eax
jne 0x1002bb59
mov eax, 0x7263
test eax, eax
jne 0x1002bb59
and dword [ebp - 0xa4], 0
jmp 0x1002bb63
mov dword [ebp - 0xa4], 1
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0xc]
cmp eax, dword [ebp - 0xa4]
jle 0x1002bb7e
mov dword [ebp - 0x110], 1
jmp 0x1002bb85
and dword [ebp - 0x110], 0
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0xc]
imul eax, dword [ebp - 0x110]
test eax, eax
jne 0x1002bba0
and dword [ebp - 0xac], 0
jmp 0x1002bbaa
mov dword [ebp - 0xac], 1
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xc]
cmp dword [ebp - 0xac], eax
je 0x1002bbc8
mov dword [ebp - 0x118], 1
jmp 0x1002bbcf
and dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0xcadfb1af
jb 0x1002bbe7
mov dword [ebp - 0xb4], 1
jmp 0x1002bbee
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0xc]
mov ecx, dword [ebp - 0xb4]
lea eax, [ecx + eax - 0xffff]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0xc]
jg 0x1002bc1a
mov dword [ebp - 0x120], 1
jmp 0x1002bc21
and dword [ebp - 0x120], 0
cmp dword [ebp - 0x120], 0
ja 0x1002bc36
mov dword [ebp - 0xbc], 1
jmp 0x1002bc3d
and dword [ebp - 0xbc], 0
cmp dword [ebp - 0xbc], 0x220985a9
je 0x1002bc55
mov dword [ebp - 0x128], 1
jmp 0x1002bc5c
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x128]
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x1a8], eax
mov dword [ebp - 0x58], 0
jmp 0x1002bc81
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jl 0x1002bdbb
mov dword [ebp - 0x2c], 0xfb389fa1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x11c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x11c]
mov dword [ebp + eax - 0x19c], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xc]
cmp dword [ebp - 0x11c], eax
je 0x1002bccc
mov dword [ebp - 0x15c], 1
jmp 0x1002bcd3
and dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 4], eax
jle 0x1002bce4
mov dword [ebp - 0x80], 1
jmp 0x1002bce8
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 1
jne 0x1002bcfa
mov dword [ebp - 0xcc], 1
jmp 0x1002bd01
and dword [ebp - 0xcc], 0
cmp dword [ebp - 0xcc], 1
je 0x1002bd16
mov dword [ebp - 0xfc], 1
jmp 0x1002bd1d
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xfc]
neg eax
cmp dword [ebp - 0x2c], eax
jl 0x1002bd36
mov dword [ebp - 0xd4], 1
jmp 0x1002bd3d
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0x2c]
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0x1a8]
jl 0x1002bd60
mov dword [ebp - 0x114], 1
jmp 0x1002bd67
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x114]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x2c]
jge 0x1002bd84
mov dword [ebp - 0xdc], 1
jmp 0x1002bd8b
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 1
jne 0x1002bda0
mov dword [ebp - 0x17c], 1
jmp 0x1002bda7
and dword [ebp - 0x17c], 0
mov dword [ebp - 0x2c], 0x6042c8cd
cmp dword [ebp - 0x74], 0
je 0x1002bdb6
jmp 0x1002bdbb
jmp 0x1002bc7a
jmp 0x1002ba88
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 4], eax
jne 0x1002be3c
mov dword [ebp - 0x1b4], 0x5c00d4b
mov dword [ebp - 0x14], 0
jmp 0x1002bde2
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1002bdf8
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1d4], 0xfa755584
jmp 0x1002bddb
mov dword [ebp - 0x14], 0
jmp 0x1002be08
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1002be1e
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x194], 0x3fa8726a
jmp 0x1002be01
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x194]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x194], eax
jmp 0x1002bf50
mov dword [ebp - 0x38], 0x1e1d
mov dword [ebp - 0x148], 7
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x1002be72
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x38]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x184]
jg 0x1002be99
cmp dword [ebp - 0x74], 0
je 0x1002be99
mov dword [ebp - 0x164], 1
jmp 0x1002bea0
and dword [ebp - 0x164], 0
cmp dword [ebp - 0x38], 0xfffffffc
je 0x1002beb8
cmp dword [ebp - 0x38], 0
je 0x1002beb8
mov dword [ebp - 0x104], 1
jmp 0x1002bebf
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x104]
add eax, 0xaa7a
cmp eax, dword [ebp - 4]
je 0x1002bee1
cmp dword [ebp - 0x38], 0
je 0x1002bee1
mov dword [ebp - 0x124], 1
jmp 0x1002bee8
and dword [ebp - 0x124], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x184]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0x124]
jle 0x1002bf15
mov dword [ebp - 0xec], 1
jmp 0x1002bf1c
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jae 0x1002bf3d
mov dword [ebp - 0xf4], 1
jmp 0x1002bf44
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x1002bf64
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
jmp 0x1002c344
mov dword [ebp - 0x64], 6
mov dword [ebp - 0x64], 2
jmp 0x1002bf80
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xe
jge 0x1002c000
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
jmp 0x1002bf9d
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x1002bfb3
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x1bc], 7
jmp 0x1002bf96
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1002bfd1
push 0xafb
push 0x189e
push 0
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x44], 1
jmp 0x1002bfe1
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jl 0x1002bffb
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x1002bff9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x1002bfda
jmp 0x1002bf79
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x1002c02a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x54], 0xfffffff7
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x4c], 0
jmp 0x1002c054
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 4
jge 0x1002c06a
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x138], 0xffffffff
jmp 0x1002c04d
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
imul ecx, ecx, 3
mov ecx, dword [ebp + ecx - 0x138]
cmp dword [ebp + eax - 0x138], ecx
jg 0x1002c179
mov dword [ebp - 0xd8], 0xaeb9ae77
mov dword [ebp - 0x150], 0xfffffff8
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x138]
cmp dword [ebp - 0xd8], eax
je 0x1002c0bf
mov dword [ebp - 0xc4], 1
jmp 0x1002c0c6
and dword [ebp - 0xc4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x138]
cmp dword [ebp - 0xc4], eax
jle 0x1002c0f0
mov eax, 0x3358
test eax, eax
je 0x1002c0f0
mov dword [ebp - 0xc0], 1
jmp 0x1002c0f7
and dword [ebp - 0xc0], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x138]
cmp dword [ebp - 0xc0], eax
jg 0x1002c118
mov dword [ebp - 0xd0], 1
jmp 0x1002c11f
and dword [ebp - 0xd0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x138]
cmp dword [ebp - 0xd0], eax
jl 0x1002c140
mov dword [ebp - 0xe0], 1
jmp 0x1002c147
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xe0]
jne 0x1002c161
mov dword [ebp - 0xe8], 1
jmp 0x1002c168
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x150], eax
jmp 0x1002c227
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x158], 0
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
je 0x1002c1ec
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x34], eax
jne 0x1002c1a1
cmp dword [ebp - 0x34], 0
jne 0x1002c1af
xor eax, eax
inc eax
jne 0x1002c1af
and dword [ebp - 0x84], 0
jmp 0x1002c1b9
mov dword [ebp - 0x84], 1
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x84], eax
jl 0x1002c1d0
mov dword [ebp - 0x88], 1
jmp 0x1002c1d7
and dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 1
jne 0x1002c1ec
mov dword [ebp - 0x90], 1
jmp 0x1002c1f3
and dword [ebp - 0x90], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x138]
cmp dword [ebp - 0x90], eax
jne 0x1002c214
mov dword [ebp - 0x98], 1
jmp 0x1002c21b
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x54], 0
jmp 0x1002c237
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffe6
jl 0x1002c327
mov dword [ebp - 0x7c], 0x627e80a
mov dword [ebp - 0x5c], 0
jmp 0x1002c258
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 2
jge 0x1002c26e
mov eax, dword [ebp - 0x5c]
mov dword [ebp + eax*4 - 0x1b0], 0xfffffff7
jmp 0x1002c251
cmp dword [ebp - 0x7c], 0
je 0x1002c27d
mov eax, 0x6dd3ed23
test eax, eax
jne 0x1002c2f1
cmp dword [ebp - 0x160], 0
jne 0x1002c2b9
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x138], 1
jne 0x1002c2a7
cmp dword [ebp - 0x7c], 0
je 0x1002c2a7
mov dword [ebp - 0xa0], 1
jmp 0x1002c2ae
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0xa0], eax
je 0x1002c2d5
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x138], 0
je 0x1002c2d5
mov dword [ebp - 0xa8], 1
jmp 0x1002c2dc
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0xed0bd2f2
jbe 0x1002c2f1
and dword [ebp - 0xb0], 0
jmp 0x1002c2fb
mov dword [ebp - 0xb0], 1
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xb0]
mov dword [ebp + eax - 0x1b0], ecx
mov byte [ebp - 0x2d], 0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x1002c322
push 0
call dword [sym.imp.USER32.dll_DestroyMenu]
jmp 0x1002c230
mov eax, dword [ebp - 0x168]
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
mov esp, ebp
pop ebp
ret