Function at 0x45bae0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50cd1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x57614c]
call fcn.0044a6a0
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push 4
push eax
call esi
push eax
call fcn.004e2f47
mov ecx, dword [eax + 4]
push 7
push ecx
call esi
push eax
call fcn.004e2f47
mov ebx, eax
push 5
mov dword [esp + 0x1c], ebx
mov edx, dword [ebx + 4]
push edx
call fcn.004a25a0
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 8
push 0x400
push 5
push eax
call esi
test eax, eax
je 0x45bb6a
mov ecx, dword [ebx + 4]
push 0x400
push 5
push ecx
call esi
test eax, eax
jne 0x45bb59
mov edx, dword [edi + 0x15e8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x418
push edx
call ebp
test eax, eax
jle 0x45bb9d
mov esi, eax
mov eax, dword [edi + 0x15e8]
push 0
push 0
push 0x416
push eax
call ebp
dec esi
jne 0x45bb88
mov eax, dword [edi + 0x1358]
lea ecx, [edi + 0x15cc]
push eax
push 0
call fcn.004fa66d
mov eax, dword [0x56b44c]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2dc], ecx
mov edx, dword [edi + 0x1358]
mov byte [esp + 0x2dc], 1
dec edx
js 0x45c0d0
mov esi, 0xe00
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x1354]
mov ecx, dword [esp + 0x20]
mov ebp, dword [ecx + eax]
test ebp, ebp
je 0x45c0a5
lea edx, [esp + 0x64]
push 2
lea ecx, [ebp + 8]
push edx
call fcn.004d6f0d
mov eax, dword [eax]
push 0x55c73c
push eax
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x64]
test eax, eax
sete bl
call fcn.004e1e27
test bl, bl
je 0x45bc58
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00457810
push 0
push 1
lea edx, [esi - 0xe00]
push 0
push edx
lea ecx, [edi + 0x15cc]
call fcn.004ec7cf
jmp 0x45c0a1
mov ebx, dword [esp + 0x18]
lea eax, [ebp + 8]
push eax
push esi
push 0
push ebx
mov ecx, edi
call fcn.004576d0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x45bc7f
mov eax, dword [ebx + 4]
push 8
push esi
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
lea ecx, [ebp + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.004e1f6e
push 1
push 0x22
lea ecx, [esp + 0x34]
call fcn.004d689e
lea edx, [esp + 0x58]
push 1
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2e4], 2
call fcn.004d6f0d
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
push ecx
push edx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x58]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
test bl, bl
je 0x45bd17
lea eax, [esp + 0x40]
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.004d6dd8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 3
call fcn.004e1f6e
lea ecx, [esp + 0x40]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
push 1
push 0x22
lea ecx, [esp + 0x2c]
call fcn.004d689e
lea ecx, [esp + 0x34]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2e4], 4
call fcn.004d6e91
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
push edx
push eax
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [esp + 0x24]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
test bl, bl
je 0x45bda9
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
dec eax
push eax
push edx
call fcn.004d6f0d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 5
call fcn.004e1f6e
lea ecx, [esp + 0x48]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
lea eax, [esp + 0x60]
push 3
push eax
lea ecx, [esp + 0x18]
call fcn.004d6f0d
mov ecx, dword [eax]
push 0x5629f4
push ecx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x60]
test eax, eax
sete bl
call fcn.004e1e27
test bl, bl
je 0x45be34
lea edx, [esp + 0x68]
push edx
call fcn.004ab6d0
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
push eax
push edx
mov byte [esp + 0x2e8], 6
call fcn.004e2066
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 7
call fcn.004e1f6e
lea ecx, [esp + 0x50]
mov byte [esp + 0x2dc], 6
call fcn.004e1e27
lea ecx, [esp + 0x68]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
mov eax, dword [esp + 0x10]
cmp word [eax], 0x25
jne 0x45be63
lea ecx, [esp + 0xcc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x10]
push edx
call fcn.004e1fbe
lea eax, [esp + 0x38]
push 2
push eax
lea ecx, [esp + 0x18]
call fcn.004d6f0d
mov ecx, dword [eax]
push 0x55c42c
push ecx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call fcn.004e1e27
test bl, bl
je 0x45beff
lea edx, [esp + 0x3c]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.004d6dd8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 8
call fcn.004e1f6e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push 0x5762b0
push ecx
call fcn.004e2066
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 9
call fcn.004e1f6e
lea ecx, [esp + 0x44]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
lea edx, [esp + 0x10]
mov dword [esp + 0x30], 0
push edx
call fcn.00419720
add esp, 4
test eax, eax
je 0x45bf8a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x38], 1
call fcn.00419b00
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2e0], 0xa
call fcn.004e1f6e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
lea edx, [esp + 0x10]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00419930
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 0xb
call fcn.004e1f6e
lea ecx, [esp + 0x54]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push 1
push ecx
push 0
push 0
push edx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x45bfad
or esi, 0xffffffff
jmp 0x45bfca
push eax
mov eax, dword [edi + 0x1710]
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [esp + 0x28]
mov esi, eax
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
push esi
mov esi, dword [esp + 0x20]
push 0
lea ebx, [edi + 0x15cc]
lea edx, [esi - 0xe00]
push esi
push edx
mov ecx, ebx
call fcn.004ec7cf
lea eax, [ebp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.004e1f6e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45c031
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
push 0x55c5c8
push ecx
call fcn.004e2140
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2e0], 0xc
call fcn.004e1f6e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2dc], 1
call fcn.004e1e27
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45c073
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x45c073
push 0x55cb64
lea ecx, [esp + 0x14]
call fcn.004e2218
push 0x55c36c
push 0x55cb68
lea ecx, [esp + 0x1c]
call fcn.004d6c2b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.004e2254
mov ecx, dword [edi + 0x15e8]
push 0
push 0
push 0x423
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.004ddf17
mov edx, dword [esp + 0x10]
push esi
push ebx
push edx
mov ecx, eax
call fcn.004daaa1
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add ecx, 4
inc esi
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0x1358]
lea eax, [esi - 0xe00]
dec ecx
cmp eax, ecx
mov dword [esp + 0x1c], esi
jle 0x45bbe9
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi + 0x15cc]
lea ecx, [edi + 0x15cc]
lea eax, [esp + 0x6c]
push eax
push 0
call dword [edx + 0xe0]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
sub eax, edx
mov dword [esp + 0x7c], 0x50
cmp eax, 0x16
mov dword [esp + 0x80], 0x320
mov dword [esp + 0xb0], 0x80bf
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x16
jl 0x45c133
mov dword [esp + 0xa4], eax
mov ecx, dword [edi + 0x15e8]
push 0
push 0
push 0x418
push ecx
call ebp
test eax, eax
jle 0x45c16b
lea edx, [esp + 0x6c]
dec eax
push edx
push eax
mov eax, dword [edi + 0x15e8]
push 0x41d
push eax
call ebp
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc0], ecx
jmp 0x45c176
mov dword [esp + 0xc0], 2
mov edx, dword [edi + 0xda8]
push 0
push 0x80bf
push 0x410
push edx
call ebp
mov edx, dword [edi + 0xda8]
lea ecx, [esp + 0x7c]
push ecx
push eax
push 0x40b
push edx
call ebp
push 0
push ebx
mov ecx, edi
call fcn.00444370
lea ecx, [esp + 0x14]
mov byte [esp + 0x2dc], 0
call fcn.004e1e27
lea ecx, [esp + 0x10]
mov dword [esp + 0x2dc], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2d0
ret