Function at 0x4087a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4903de
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004095d0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00408400
test eax, eax
jne 0x408a63
push str.main_manual
push dword [edi]
xor esi, esi
call fcn.00470614
add esp, 8
mov ecx, 1
test eax, eax
mov eax, dword [0x4bcd74]
cmove esi, ecx
test eax, eax
jne 0x40883f
push 0x90
call fcn.00439955
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040da10
mov byte [ebp - 4], 0
mov dword [0x4bcd74], eax
lea ecx, [eax + 0x88]
push edi
call fcn.00409070
mov eax, dword [0x4bcd74]
test eax, eax
jne 0x408878
push 0x90
call fcn.00439955
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040da10
mov byte [ebp - 4], 0
mov dword [0x4bcd74], eax
push esi
mov ecx, eax
call fcn.0040e4a0
test eax, eax
jne 0x4089ce
mov eax, dword [0x4bcd74]
test eax, eax
jne 0x4088b1
push 0x90
call fcn.00439955
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040da10
mov dword [0x4bcd74], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0040ed00
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
setne al
test al, al
je 0x4088e2
test esi, esi
jne 0x408921
cmp dword [ebx + 0x28], 3
jne 0x408921
call fcn.00408e50
mov ecx, eax
call fcn.0040e730
xor ebx, ebx
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x408a65
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x408a65
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x408a65
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x408a65
push 0x810
call fcn.00439955
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00415170
push 0
push 0x168
push 0x276
push 0
push 0
push 0
mov edi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x28]
mov ecx, edi
push 0x100
push 0x4a78a8
push 0
mov dword [edi + 0x800], eax
call dword [sym.imp.UiLib.dll_public:_struct_HWND______thiscall_UiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004094f0
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00415b30
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 0x20]
sub ecx, 0x10
call fcn.004094f0
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00415ba0
mov ecx, edi
call dword [sym.imp.UiLib.dll_public:_void___thiscall_UiLib::CWindowWnd::CenterWindow_void_]
push 5
mov ecx, edi
call dword [sym.imp.UiLib.dll_public:_struct_HWND______thiscall_UiLib::CWindowWnd::operator_struct_HWND____void_const]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, 1
jmp 0x4088e4
cmp eax, 1
jne 0x408a63
test esi, esi
je 0x408a63
push ecx
mov ecx, esp
push str._UpdateWnd_nownewst
call fcn.004038a0
mov esi, dword [sym.imp.UiLib.dll_public:_static_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CStringBundleMgr::getString_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____]
lea eax, [ebp - 0x14]
push eax
call esi
add esp, 4
mov byte [ebp - 4], 7
mov ecx, esp
push str._UpdateWnd_cheecktitle
call fcn.004038a0
lea eax, [ebp - 0x10]
push eax
call esi
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004033b0
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
add esp, 8
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408a47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408a63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push ecx
push dword [ecx]
lea ecx, [ebp - 0x24]
push eax
call fcn.00408fd0
push dword [ebp - 0x24]
call fcn.0043991c
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret