Function at 0x4e9db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x547570]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, str.Programs
push ebp
push esi
test ecx, ecx
push edi
mov dword [esp + 0x14], eax
je 0x4e9e1c
mov edx, ecx
shr edx, 0x10
jne 0x4e9de7
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.00413ae0
jmp 0x4e9e1c
push str.Programs
call ebx
mov esi, eax
test esi, esi
je 0x4e9e1c
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4e9e1c
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, str.Programs
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x547570]
mov ecx, str._State
test ecx, ecx
mov dword [esp + 0x28], eax
jne 0x4e9e32
xor eax, eax
jmp 0x4e9e39
push str._State
call ebx
push str._State
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.004059f0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
call fcn.00405440
lea ecx, [esp + 0x28]
call fcn.00405700
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push str.Disable
push ecx
call fcn.0048eb00
mov ecx, dword [0x547574]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 0x14
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4e9eb3
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4e9eb3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
test esi, esi
je 0x4e9ef2
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ea6d4
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4ea6d4
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
mov edx, dword [eax - 0xc]
mov ecx, esp
test edx, edx
jl 0x4e9f14
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call edi
jmp 0x4e9f26
mov edx, dword [0x547570]
mov dword [ecx], edx
mov eax, dword [esp + 0x18]
push eax
call fcn.00405920
lea ecx, [esp + 0x14]
push ecx
call fcn.0048f880
mov edx, dword [esp + 0x18]
add esp, 8
mov eax, dword [edx - 8]
test eax, eax
jne 0x4ea013
mov eax, dword [0x547570]
push ecx
mov ecx, 0x54c260
mov esi, esp
test ecx, ecx
mov dword [esp + 0x2c], eax
jne 0x4e9f5b
xor eax, eax
jmp 0x4e9f62
push 0x54c260
call ebx
push 0x54c260
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.004059f0
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00405440
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x3c]
push ecx
call fcn.0048da00
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4e9fe8
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4e9fbc
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4e9fc3
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4e9fd3
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4e9fe8
lea ecx, [esp + 0x10]
call fcn.004124c0
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call edi
mov eax, dword [esp + 0x38]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ea013
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4ea013
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, 0x54920c
test eax, eax
je 0x4ea1c9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x4ea1c9
mov ecx, 0x554e08
test ecx, ecx
jne 0x4ea040
mov dword [esp + 0x24], ecx
jmp 0x4ea04f
push 0x554e08
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov edx, dword [esi - 8]
lea ebp, [esi + edx*2]
cmp esi, ebp
jae 0x4ea1c9
push 0x54920c
push esi
call fcn.0053225f
add esp, 8
test eax, eax
je 0x4ea08b
lea esi, [eax + ebx*2]
push 0x54920c
push esi
inc edi
call fcn.0053225f
add esp, 8
test eax, eax
jne 0x4ea075
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x4ea063
test edi, edi
jle 0x4ea1c9
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x28], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x48], ebp
cmp eax, ebp
jl 0x4ea0d2
cmp dword [esi - 0xc], 1
jle 0x4ea110
lea eax, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], eax
call fcn.00405530
test eax, eax
je 0x4ea1c9
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405590
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x44], eax
jae 0x4ea1c6
push 0x54920c
push esi
call fcn.0053225f
mov edi, eax
add esp, 8
test edi, edi
je 0x4ea1ab
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x28]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [esi + edi]
push ebp
push ecx
push eax
mov dword [esp + 0x58], eax
call fcn.00532360
mov ecx, esi
mov esi, 0x554e08
mov edx, ecx
mov eax, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x54920c
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x5c]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x3c]
add ebp, eax
mov dword [esp + 0x3c], ebp
call fcn.0053225f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4ea136
mov ebp, dword [esp + 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x44]
cmp esi, eax
jb 0x4ea122
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
lea ecx, [esp + 0x10]
push 0xa
lea edx, [esp + 0x7c]
xor esi, esi
push ecx
push edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
call fcn.004b6e20
mov eax, dword [esp + 0x8c]
add esp, 0xc
xor edi, edi
cmp eax, esi
mov ebp, 0x898
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], edi
jle 0x4ea6b0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4ea231
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor esi, esi
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + edi*4]
cmp dword [eax - 0xc], esi
jl 0x4ea249
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4ea25f
mov eax, dword [0x547570]
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + edi*4]
push ecx
lea ecx, [esp + 0x28]
call fcn.00405920
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + edi*4]
cmp dword [eax - 0xc], esi
jl 0x4ea277
mov dword [esp + 0x1c], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4ea28e
mov edx, dword [0x547570]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + edi*4]
push eax
lea ecx, [esp + 0x20]
call fcn.00405920
mov ecx, dword [esp + 0x24]
mov eax, dword [0x547570]
mov ebx, dword [esp + 0x88]
xor esi, esi
push 0x2f
push esi
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
call fcn.005190f0
add esp, 0x10
test eax, eax
je 0x4ea67b
mov eax, dword [0x547570]
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], eax
mov eax, 0x54c1bc
test eax, eax
je 0x4ea2e2
push 0x54c1bc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x54c1bc
push eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004059f0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
call fcn.00405440
lea ecx, [esp + 0x2c]
call fcn.00405700
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 0x30]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ea352
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ea352
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x24]
lea edi, [esi + 1]
push 0x2f
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x3c], edi
call fcn.005190f0
add esp, 0x10
test eax, eax
je 0x4ea3e6
mov eax, dword [esp + 0x74]
xor esi, esi
test eax, eax
jle 0x4ea3a5
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x28]
push ecx
mov eax, dword [edx + esi*4]
push eax
call fcn.005322f9
add esp, 8
test eax, eax
je 0x4ea3a0
mov eax, dword [esp + 0x74]
inc esi
cmp esi, eax
jl 0x4ea37c
jmp 0x4ea3a5
cmp esi, 0xffffffff
jne 0x4ea3da
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
lea edx, [esp + 0x28]
push esi
push ecx
mov ecx, esp
push edx
call fcn.00405440
lea ecx, [esp + 0x74]
call fcn.0052a1e0
mov eax, dword [esp + 0x20]
push eax
push esi
push 0x10
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ebx, esi
jmp 0x4ea641
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx + esi*4]
jmp 0x4ea641
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
push edx
call fcn.00405440
lea eax, [esp + 0x20]
push eax
call fcn.004e2920
mov eax, dword [esp + 0x9c]
mov ecx, dword [0x547570]
add esp, 0xc
mov dword [esp + 0x38], ecx
test eax, eax
je 0x4ea5cf
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x64]
call fcn.00510fb0
push 0
push 0x547824
lea ecx, [esp + 0x24]
call fcn.00405c70
mov edi, eax
cmp edi, 0xffffffff
je 0x4ea58d
test edi, edi
jge 0x4ea44e
xor eax, eax
jmp 0x4ea45b
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx - 8]
cmp edi, ecx
jle 0x4ea45b
mov eax, ecx
mov edx, dword [0x547570]
push 0
push 0
push eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x44], edx
call fcn.00412500
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x44]
call fcn.00405440
lea ecx, [esp + 0x34]
call fcn.00405700
push 0
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
push edx
call fcn.00405440
lea eax, [esp + 0x44]
push eax
call fcn.004e2920
mov ecx, dword [esp + 0x24]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x4ea4fb
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4ea4cb
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4ea4d2
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4ea4e2
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4ea4fb
lea ecx, [esp + 0x18]
call fcn.004124c0
mov esi, dword [esi]
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4ea52a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ea52a
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x6c]
call fcn.00510fb0
test eax, eax
je 0x4ea543
lea esi, [eax + 4]
jmp 0x4ea545
xor esi, esi
lea ecx, [esp + 0x60]
call fcn.00405300
push esi
lea ecx, [esp + 0x64]
call fcn.00406370
lea ecx, [esp + 0x64]
call fcn.00510740
inc edi
lea edx, [esp + 0x50]
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.0043dbd0
push eax
lea ecx, [esp + 0x3c]
call fcn.00412800
lea ecx, [esp + 0x50]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.005114b0
push eax
call fcn.00529df0
mov edi, dword [esp + 0x98]
add esp, 8
mov esi, eax
mov ecx, edi
push ebp
push esi
call fcn.0052d4a0
test eax, eax
jne 0x4ea5c2
push ebp
push esi
mov ecx, edi
call fcn.0052d4f0
lea ecx, [esp + 0x5c]
call fcn.00510740
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push eax
push ebp
push 0
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
push 0x54d110
lea ecx, [esp + 0x48]
call fcn.00405730
push ecx
lea ecx, [esp + 0x3c]
mov esi, esp
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00412c10
push eax
push esi
call fcn.00412c10
mov ecx, dword [esp + 0x90]
push ebp
call fcn.004f21b0
lea ecx, [esp + 0x54]
call fcn.00405700
lea ecx, [esp + 0x44]
call fcn.00405700
lea ecx, [esp + 0x38]
inc ebp
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
push 0x554e48
lea ecx, [esp + 0x24]
call fcn.00433110
lea ecx, [esp + 0x48]
mov esi, edi
call fcn.00405700
mov edx, dword [esp + 0x24]
push 0x2f
push esi
lea eax, [esp + 0x28]
push edx
push eax
call fcn.005190f0
add esp, 0x10
test eax, eax
jne 0x4ea2c1
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
mov eax, dword [esp + 0x58]
inc edi
cmp edi, eax
mov dword [esp + 0x4c], edi
jl 0x4ea229
lea ecx, [esp + 0x6c]
call fcn.004f23d0
lea ecx, [esp + 0x78]
call fcn.00405350
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret