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

Disassembly:
sub esp, 0x74
mov eax, dword [0x546560]
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 0x4e925c
mov edx, ecx
shr edx, 0x10
jne 0x4e9227
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.00413c90
jmp 0x4e925c
push str.Programs
call ebx
mov esi, eax
test esi, esi
je 0x4e925c
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4e925c
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 [0x546560]
mov ecx, str._State
test ecx, ecx
mov dword [esp + 0x28], eax
jne 0x4e9272
xor eax, eax
jmp 0x4e9279
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.0048dbb0
mov ecx, dword [0x546564]
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 0x4e92f3
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4e92f3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
test esi, esi
je 0x4e9332
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4e9b14
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4e9b14
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x4e9354
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call edi
jmp 0x4e9366
mov edx, dword [0x546560]
mov dword [ecx], edx
mov eax, dword [esp + 0x18]
push eax
call fcn.00405920
lea ecx, [esp + 0x14]
push ecx
call fcn.0048e930
mov edx, dword [esp + 0x18]
add esp, 8
mov eax, dword [edx - 8]
test eax, eax
jne 0x4e9453
mov eax, dword [0x546560]
push ecx
mov ecx, 0x54b218
mov esi, esp
test ecx, ecx
mov dword [esp + 0x2c], eax
jne 0x4e939b
xor eax, eax
jmp 0x4e93a2
push 0x54b218
call ebx
push 0x54b218
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.0048cab0
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4e9428
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4e93fc
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4e9403
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4e9413
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4e9428
lea ecx, [esp + 0x10]
call fcn.00412670
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call edi
mov eax, dword [esp + 0x38]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4e9453
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4e9453
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, 0x5481ec
test eax, eax
je 0x4e9609
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x4e9609
mov ecx, 0x553d98
test ecx, ecx
jne 0x4e9480
mov dword [esp + 0x24], ecx
jmp 0x4e948f
push 0x553d98
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 0x4e9609
push 0x5481ec
push esi
call fcn.0053176f
add esp, 8
test eax, eax
je 0x4e94cb
lea esi, [eax + ebx*2]
push 0x5481ec
push esi
inc edi
call fcn.0053176f
add esp, 8
test eax, eax
jne 0x4e94b5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x4e94a3
test edi, edi
jle 0x4e9609
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 0x4e9512
cmp dword [esi - 0xc], 1
jle 0x4e9550
lea eax, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], eax
call fcn.00405530
test eax, eax
je 0x4e9609
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 0x4e9606
push 0x5481ec
push esi
call fcn.0053176f
mov edi, eax
add esp, 8
test edi, edi
je 0x4e95eb
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.00531870
mov ecx, esi
mov esi, 0x553d98
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 0x5481ec
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.0053176f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4e9576
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 0x4e9562
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.004b5ed0
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 0x4e9af0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4e9671
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 0x4e9689
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4e969f
mov eax, dword [0x546560]
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 0x4e96b7
mov dword [esp + 0x1c], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4e96ce
mov edx, dword [0x546560]
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 [0x546560]
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.00518490
add esp, 0x10
test eax, eax
je 0x4e9abb
mov eax, dword [0x546560]
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], eax
mov eax, 0x54b174
test eax, eax
je 0x4e9722
push 0x54b174
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x54b174
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4e9792
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4e9792
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.00531732
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.00518490
add esp, 0x10
test eax, eax
je 0x4e9826
mov eax, dword [esp + 0x74]
xor esi, esi
test eax, eax
jle 0x4e97e5
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x28]
push ecx
mov eax, dword [edx + esi*4]
push eax
call fcn.00531809
add esp, 8
test eax, eax
je 0x4e97e0
mov eax, dword [esp + 0x74]
inc esi
cmp esi, eax
jl 0x4e97bc
jmp 0x4e97e5
cmp esi, 0xffffffff
jne 0x4e981a
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.00529710
mov eax, dword [esp + 0x20]
push eax
push esi
push 0x10
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ebx, esi
jmp 0x4e9a81
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx + esi*4]
jmp 0x4e9a81
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
push edx
call fcn.00405440
lea eax, [esp + 0x20]
push eax
call fcn.004e1d60
mov eax, dword [esp + 0x9c]
mov ecx, dword [0x546560]
add esp, 0xc
mov dword [esp + 0x38], ecx
test eax, eax
je 0x4e9a0f
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x64]
call fcn.005106b0
push 0
push 0x546814
lea ecx, [esp + 0x24]
call fcn.00405c70
mov edi, eax
cmp edi, 0xffffffff
je 0x4e99cd
test edi, edi
jge 0x4e988e
xor eax, eax
jmp 0x4e989b
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx - 8]
cmp edi, ecx
jle 0x4e989b
mov eax, ecx
mov edx, dword [0x546560]
push 0
push 0
push eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x44], edx
call fcn.004126b0
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.004e1d60
mov ecx, dword [esp + 0x24]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x4e993b
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4e990b
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4e9912
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4e9922
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4e993b
lea ecx, [esp + 0x18]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4e996a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4e996a
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x6c]
call fcn.005106b0
test eax, eax
je 0x4e9983
lea esi, [eax + 4]
jmp 0x4e9985
xor esi, esi
lea ecx, [esp + 0x60]
call fcn.00405300
push esi
lea ecx, [esp + 0x64]
call fcn.00406280
lea ecx, [esp + 0x64]
call fcn.0050fe40
inc edi
lea edx, [esp + 0x50]
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.0043d950
push eax
lea ecx, [esp + 0x3c]
call fcn.004129b0
lea ecx, [esp + 0x50]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.00510bb0
push eax
call fcn.00529320
mov edi, dword [esp + 0x98]
add esp, 8
mov esi, eax
mov ecx, edi
push ebp
push esi
call fcn.0052c9d0
test eax, eax
jne 0x4e9a02
push ebp
push esi
mov ecx, edi
call fcn.0052ca20
lea ecx, [esp + 0x5c]
call fcn.0050fe40
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 0x54c0c0
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.00412dc0
push eax
push esi
call fcn.00412dc0
mov ecx, dword [esp + 0x90]
push ebp
call fcn.004f15f0
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 0x553dd8
lea ecx, [esp + 0x24]
call fcn.00433000
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.00518490
add esp, 0x10
test eax, eax
jne 0x4e9701
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 0x4e9669
lea ecx, [esp + 0x6c]
call fcn.004f1810
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