Function at 0x1004e010
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10058640
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [0x10070828]
push 0x25b
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push eax
push 1
lea esi, [ebx + 4]
push 0x80
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x16c]
mov edx, dword [eax + 8]
mov esi, dword [esi]
mov dword [esp + 0x10], edx
mov dword [eax + 0x31c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x10070bf0]
add esi, 0x10
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10070c98]
lea ecx, [esp + 0x14]
call fcn.10014290
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ebx, 0x20
mov dword [esp + 0x14], ebx
lea esi, [edi + 4]
lea ebx, [esp + 0x14]
call fcn.100141e0
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [edi + 0x19c]
test eax, eax
je 0x1004e0f6
cmp eax, ebx
je 0x1004e0f6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x19c], ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call sub.SetupUi.dll_public:_bool___thiscall_CUiManager::IsWindowPosSaved_void_const
test al, al
je 0x1004e144
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, ebx
mov dword [esp + 0x18], eax
call sub.SetupUi.dll_public:_struct_tagRECT_const____thiscall_CUiManager::GetWindowPos_void_const
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0x40
sub ebx, ecx
push ebx
sub eax, edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x1004e153
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push esi
call fcn.10014060
cmp dword [edi + 0xcf0], 0
lea eax, [edi + 0x470]
jne 0x1004e188
test eax, eax
je 0x1004e16d
add eax, 0xfffffb90
jmp 0x1004e16f
xor eax, eax
mov ecx, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4ac
push ecx
call ebx
mov dword [edi + 0xcf0], eax
jmp 0x1004e18e
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, edi
call fcn.10036030
push edi
call fcn.10010ac0
push edi
call fcn.10010bd0
mov eax, edi
call fcn.1001cc60
mov edx, dword [edi + 0x16c]
mov eax, dword [edx + 0x1b8]
push 0x426
lea ecx, [edi + 0x2f8]
call fcn.10046490
mov eax, dword [edi + 0x16c]
mov eax, dword [eax + 0x1bc]
push 0x427
lea ecx, [edi + 0x36c]
call fcn.10046490
mov ecx, dword [esi]
push 0x4fe
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e211
mov edx, dword [esi]
push 0x4fe
push edx
call ebx
mov edx, dword [edi + 0x3e0]
lea ecx, [edi + 0x3e0]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 0x3e4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e270
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x5d], 0
je 0x1004e252
cmp byte [eax + 0x5c], 0
je 0x1004e252
mov edx, dword [edi + 0x3e4]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x3e4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1004e270
mov ecx, dword [edi + 0x3e4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 0x3e4]
push 0
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi]
push 0x3e9
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e2a1
mov ecx, dword [esi]
push 0x3e9
push ecx
call ebx
mov edx, dword [edi + 0x404]
lea ecx, [edi + 0x404]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi]
push 1
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e2cc
mov edx, dword [esi]
push 1
push edx
call ebx
mov edx, dword [edi + 0x428]
lea ecx, [edi + 0x428]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi]
push 2
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e2f7
mov edx, dword [esi]
push 2
push edx
call ebx
mov edx, dword [edi + 0x44c]
lea ecx, [edi + 0x44c]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 0x17c]
xor eax, eax
cmp ecx, eax
je 0x1004e403
mov edx, dword [edi + 0x180]
sub edx, ecx
sar edx, 2
je 0x1004e403
mov ecx, dword [edi + 0x16c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x98], 1
mov edx, dword [esi]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call sub.SetupUi.dll_public:_struct_tagRECT_const____thiscall_CUiManager::GetWindowPos_void_const
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
xor ebx, ebx
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x1004e3cd
mov eax, dword [edi + 0x180]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x1004e3cd
test ecx, ecx
je 0x1004e3b2
mov eax, dword [edi + 0x180]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1004e3b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x17c]
mov ecx, dword [edx + ebx*4]
lea eax, [esp + 0x2c]
push eax
call ecx
add ebx, 1
jmp 0x1004e386
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1004e3de
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x5c]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
je 0x1004e3fd
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi]
push 0x407
push edx
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e42b
mov eax, dword [esi]
push 0x407
push eax
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x1a0], 0
jne 0x1004e454
mov ecx, dword [edi + 0x408]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e454
mov edx, dword [edi + 0x408]
push 0
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4