Function at 0x4b16354f
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4b168336
call fcn.4b1678d8
sub esp, 0x454
mov eax, dword [0x4b16c628]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x44c], esi
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_
push 0x4b153744
lea ecx, [ebp - 0x444]
mov dword [ebp - 4], ebx
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__
push 0x80070057
push esi
lea eax, [ebp - 0x460]
push eax
call fcn.4b15f55e
push eax
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
call sym.mmcbase.DLL_public:_class_CMMCStrongReferences____thiscall_CMMCStrongReferences::operator_class_CMMCStrongReferences_const__
dec dword [sym.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], bl
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::Trace__void_const
lea ecx, [ebp - 0x444]
call sym.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const
test al, al
jne 0x4b163930
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x3ee
push edi
mov dword [ebp - 0x450], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
mov dword [ebp - 0x424], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b163930
push ebx
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add eax, 0xc
push eax
push 0x195
push esi
call edi
push ebx
push ebx
push 0x184
push esi
call edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x420]
push eax
push 0x3ed
push dword [ebp - 0x448]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jne 0x4b1636c0
lea ecx, [ebp - 0x444]
call sym.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_
mov eax, dword [0x4b16c0b8]
cmp byte [eax + 0x19], 2
jb 0x4b163930
lea ecx, [ebp - 0x444]
call sym.mmcbase.DLL_public:_long_int___thiscall_mmcerror::SC::ToHr_void_const
push eax
mov eax, dword [0x4b16c0b8]
push 0x4b153710
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.4b156ac1
jmp 0x4b163930
cmp eax, esi
jbe 0x4b1636c8
mov word [ebp - 0x12], bx
mov eax, dword [ebp - 0x44c]
push ebx
add eax, 0x10
push eax
push esi
mov dword [ebp - 0x42c], eax
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4b163743
push ebx
lea ecx, [ebp - 0x460]
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_
push 0x10
sub esp, 0x10
lea eax, [ebp - 0x460]
mov ecx, esp
mov dword [ebp - 0x428], esp
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x460], 1
mov dword [ebp - 0x45c], 2
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__
call sym.mmcbase.DLL_int___stdcall_MMCErrorBox_class_mmcerror::SC__unsigned_int_
dec dword [sym.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], bl
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::Trace__void_const
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, ebx
mov dword [ebp - 0x430], eax
jle 0x4b16384a
cmp eax, 0x7fffffff
jge 0x4b16384a
push ebx
shl eax, 2
push eax
mov ecx, 0x4b16c67c
call fcn.4b166137
cmp eax, ebx
mov dword [ebp - 0x428], eax
je 0x4b16384a
push dword [ebp - 0x430]
push ebx
push eax
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, ebx
mov dword [ebp - 0x430], eax
jle 0x4b16383a
cmp eax, 0x7fffffff
jge 0x4b16383a
push ebx
push ebx
push 0xb
push dword [ebp - 0x424]
call edi
cmp dword [ebp - 0x430], ebx
mov dword [ebp - 0x434], ebx
jle 0x4b163802
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x434]
push dword [eax + ecx*4]
push ebx
push 0x180
push dword [ebp - 0x424]
call edi
inc dword [ebp - 0x434]
mov eax, dword [ebp - 0x434]
cmp eax, dword [ebp - 0x430]
jl 0x4b1637d1
mov eax, dword [ebp - 0x44c]
push ebx
push dword [eax + 8]
push 0x186
push dword [ebp - 0x424]
call edi
cmp eax, 0xffffffff
jne 0x4b16382d
push ebx
push ebx
push 0x186
push dword [ebp - 0x424]
call edi
push ebx
push 1
push 0xb
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x428]
mov ecx, 0x4b16c67c
call fcn.4b166269
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push esi
lea eax, [ebp - 0x420]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x400
call edi
cmp eax, 0x3ec
mov dword [ebp - 0x428], eax
je 0x4b1638df
cmp eax, 0x57
je 0x4b1638df
push esi
push dword [ebp - 0x42c]
lea eax, [ebp - 0x218]
push esi
push eax
push ebx
push 0x400
call edi
cmp eax, 0x3ec
je 0x4b1638df
cmp eax, 0x57
je 0x4b1638df
cmp dword [ebp - 0x428], 2
je 0x4b1638fe
cmp eax, 2
jne 0x4b1638fe
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 0x42c]
call fcn.4b156d15
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x444], 3
mov dword [ebp - 0x440], eax
call sym.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const
test al, al
je 0x4b1638fe
jmp 0x4b1638f3
mov dword [ebp - 0x444], 3
mov dword [ebp - 0x440], 0x8000ffff
lea ecx, [ebp - 0x444]
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::TraceAndClear_void_
push dword [ebp - 0x42c]
push 0x3ed
push dword [ebp - 0x448]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp - 0x450]
call dword [sym.imp.USER32.dll_SetCursor]
or dword [ebp - 4], 0xffffffff
dec dword [sym.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
lea ecx, [ebp - 0x444]
call sym.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::Trace__void_const
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.4b163f8b
pop edi
pop esi
pop ebx
leave
ret 8