Function at 0x10041ee0
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 0x10041fc6
cmp eax, ebx
je 0x10041fc6
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 0x10042014
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 0x10042023
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push esi
call fcn.10014060
mov ebx, edi
call fcn.10045db0
mov ecx, edi
call fcn.10036030
push edi
call fcn.10010ac0
push edi
call fcn.10010bd0
mov eax, edi
call fcn.1001cc60
mov ecx, dword [edi + 0x16c]
mov eax, dword [ecx + 0x1b8]
push 0x426
lea ecx, [edi + 0x2f8]
call fcn.10046490
mov edx, dword [edi + 0x16c]
mov eax, dword [edx + 0x1bc]
push 0x427
lea ecx, [edi + 0x36c]
call fcn.10046490
mov eax, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4fe
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100420b3
mov ecx, dword [esi]
push 0x4fe
push ecx
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 0x10042112
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x5d], 0
je 0x100420f4
cmp byte [eax + 0x5c], 0
je 0x100420f4
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 0x10042112
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 0x10042143
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 0x1004216e
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 0x10042199
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 0x100422ad
mov edx, dword [edi + 0x180]
sub edx, ecx
sar edx, 2
je 0x100422ad
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
jmp 0x10042230
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x10042277
mov eax, dword [edi + 0x180]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x10042277
test ecx, ecx
je 0x1004225c
mov eax, dword [edi + 0x180]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x10042262
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 0x10042230
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10042288
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 0x100422a7
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 0x100422d5
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 0x100422fe
mov ecx, dword [edi + 0x408]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100422fe
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