Function at 0x10020070
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 0x10020156
cmp eax, ebx
je 0x10020156
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 0x100201a4
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 0x100201b3
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push esi
call fcn.10014060
cmp dword [edi + 0x478], 0
lea eax, [edi + 0x470]
jne 0x100201e8
test eax, eax
je 0x100201cd
add eax, 0xfffffb90
jmp 0x100201cf
xor eax, eax
mov ecx, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x502
push ecx
call ebx
mov dword [edi + 0x478], eax
jmp 0x100201ee
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi + 0x47c], 0
jne 0x1002021b
lea eax, [edi + 0x470]
test eax, eax
je 0x10020208
add eax, 0xfffffb90
jmp 0x1002020a
xor eax, eax
mov edx, dword [eax + 4]
push 0x490
push edx
call ebx
mov dword [edi + 0x47c], eax
cmp dword [edi + 0x480], 0
jne 0x10020248
lea eax, [edi + 0x470]
test eax, eax
je 0x10020235
add eax, 0xfffffb90
jmp 0x10020237
xor eax, eax
mov eax, dword [eax + 4]
push 0x48e
push eax
call ebx
mov dword [edi + 0x480], eax
cmp dword [edi + 0x484], 0
jne 0x10020275
lea eax, [edi + 0x470]
test eax, eax
je 0x10020262
add eax, 0xfffffb90
jmp 0x10020264
xor eax, eax
mov ecx, dword [eax + 4]
push 0x48f
push ecx
call ebx
mov dword [edi + 0x484], eax
cmp dword [edi + 0x4ac], 0
jne 0x100202a2
lea eax, [edi + 0x470]
test eax, eax
je 0x1002028f
add eax, 0xfffffb90
jmp 0x10020291
xor eax, eax
mov edx, dword [eax + 4]
push 0x4af
push edx
call ebx
mov dword [edi + 0x4ac], eax
cmp dword [edi + 0x4b0], 0
jne 0x100202cf
lea eax, [edi + 0x470]
test eax, eax
je 0x100202bc
add eax, 0xfffffb90
jmp 0x100202be
xor eax, eax
mov eax, dword [eax + 4]
push 0x4f1
push eax
call ebx
mov dword [edi + 0x4b0], eax
push 0
lea eax, [edi + 0x474]
lea ecx, [edi + 0x470]
call fcn.1001f9d0
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]
push 0x4fe
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10020365
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 0x100203c4
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x5d], 0
je 0x100203a6
cmp byte [eax + 0x5c], 0
je 0x100203a6
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 0x100203c4
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 0x100203f5
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 0x10020420
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 0x1002044b
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 0x1002055d
mov edx, dword [edi + 0x180]
sub edx, ecx
sar edx, 2
je 0x1002055d
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
lea ebx, [ebx]
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x10020527
mov eax, dword [edi + 0x180]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x10020527
test ecx, ecx
je 0x1002050c
mov eax, dword [edi + 0x180]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x10020512
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 0x100204e0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10020538
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 0x10020557
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 0x10020585
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 0x100205ae
mov ecx, dword [edi + 0x408]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100205ae
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