Function at 0x403590
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x56e1e8]
sub esp, 0x30
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x4035bd
call fcn.00422af0
mov eax, dword [eax + 4]
push 0
push 0x77fc
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x44]
lea edi, [esi + 0x28]
mov dword [esi + 0x8f8], ecx
mov edx, dword [0x58e228]
push 1
push str.ACC_BACK.PNG
push edx
mov ecx, edi
call fcn.00493560
mov eax, dword [0x58e228]
push 1
push str.ACC_ENABLE.PNG
push eax
lea ecx, [esi + 0x25c]
call fcn.00493560
mov ecx, dword [0x58e228]
push 1
push 0x539404
push ecx
lea ecx, [esi + 0x490]
call fcn.00493560
mov edx, dword [0x58e228]
push 1
push 0x5393e0
push edx
lea ecx, [esi + 0x6c4]
call fcn.00493560
mov ecx, edi
call fcn.00494280
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, esi
mov ebx, eax
add ebp, 0x3e
sub edi, 5
call fcn.004032e0
sub eax, 3
push 0
push 0x2008
push 0
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esi + 0x1418], eax
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
add edx, eax
mov eax, ebp
mov dword [ebx + 4], edx
sub eax, ecx
mov ecx, dword [esi + 0x8f8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
mov ebp, dword [ebx + 4]
add edi, ebp
mov dword [esp + 0x38], edi
mov edx, dword [ecx]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push 0x90000000
push 0
push str.XWnd
push 0x8080088
mov ecx, esi
call fcn.0050b5a0
mov edi, eax
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call fcn.004e6d70
mov ecx, eax
call fcn.00506720
call fcn.00422af0
push 0
push 0x77ed
push 0x405
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push edx
push 0x478
call fcn.0051d7a5
add esp, 8
test eax, eax
je 0x403866
push esi
mov ecx, eax
call fcn.004a1570
test eax, eax
mov dword [esp + 0x10], eax
je 0x403903
push 3
push 2
push 1
push 0
push str.close_normal.PNG
mov ecx, eax
call fcn.004a16f0
mov ecx, dword [esp + 0x10]
push 2
call fcn.004a16c0
mov ecx, dword [esp + 0x10]
push 0x6e
call fcn.004a1970
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004a1960
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004a1ba0
mov eax, dword [ebx]
mov ebp, dword [esp + 0x18]
mov edx, eax
add eax, 0xfffffff4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
sub edx, ebp
lea ecx, [esp + 0x30]
sub edx, 0xc
add eax, 0x10
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x40], eax
call fcn.004a1880
mov eax, dword [esi + 0x1424]
mov edx, dword [esi + 0x1428]
lea edi, [esi + 0x141c]
sub edx, eax
sar edx, 2
cmp edx, 1
mov ebp, eax
jae 0x403873
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4037c7
sub eax, ecx
sar eax, 2
cmp eax, 1
mov dword [esp + 0x44], eax
ja 0x4037cf
mov dword [esp + 0x44], 1
mov ecx, edi
call fcn.004c0040
add eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jns 0x4037e2
xor eax, eax
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [edi + 4]
add esp, 4
mov dword [esp + 0x48], eax
push eax
push ebp
push ecx
mov ecx, edi
call fcn.00456d00
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push 1
push eax
mov dword [esp + 0x50], eax
call fcn.004b5000
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 8]
add eax, 4
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00456d00
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
push edx
push eax
mov ecx, edi
call fcn.004b4ff0
mov ecx, dword [edi + 4]
push ecx
call fcn.0051d79a
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, edi
lea eax, [ebp + edx*4]
mov dword [edi + 0xc], eax
call fcn.004c0040
lea ecx, [ebp + eax*4 + 4]
mov dword [edi + 4], ebp
mov dword [edi + 8], ecx
jmp 0x403903
mov dword [esp + 0x10], 0
jmp 0x403903
mov edx, eax
sub edx, ebp
sar edx, 2
cmp edx, 1
jae 0x4038c3
lea ecx, [ebp + 4]
push ecx
push eax
push ebp
mov ecx, edi
call fcn.00456d00
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, ebp
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, edi
push edx
push eax
call fcn.004b5000
mov ecx, dword [edi + 8]
mov eax, ebp
cmp ebp, ecx
je 0x4038ff
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4038b4
jmp 0x4038ff
push eax
push eax
add eax, 0xfffffffc
mov ecx, edi
push eax
call fcn.00456d00
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp ebp, eax
je 0x4038e9
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, ebp
mov dword [ecx], edx
jne 0x4038da
lea ecx, [ebp + 4]
mov eax, ebp
cmp ebp, ecx
je 0x4038ff
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4038f2
add dword [edi + 8], 4
mov eax, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push eax
push 0x478
call fcn.0051d7a5
add esp, 8
test eax, eax
je 0x403a14
push esi
mov ecx, eax
call fcn.004a1570
test eax, eax
mov dword [esp + 0x10], eax
je 0x403b3c
push 5
mov ecx, eax
call fcn.004a16c0
push 0xc42b
call fcn.0049bcd0
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
call fcn.004a16d0
mov ebp, 4
push ebp
call fcn.004f8c70
mov ecx, eax
call fcn.004fa110
mov ecx, dword [esp + 0x10]
push eax
call fcn.004a18e0
mov ecx, dword [esp + 0x10]
push 0xf38e2a
push 0xf38e2a
push 0xf38e2a
push 0xf38e2a
call fcn.004a18b0
mov ecx, dword [esp + 0x10]
push 0x6f
call fcn.004a1970
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004a1960
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
lea edx, [eax - 0x4e]
lea ecx, [ebx - 0x46]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
add eax, 0xfffffff1
add ebx, 0xffffffc9
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
call fcn.004a1880
mov eax, dword [esi + 0x1424]
mov ecx, dword [esi + 0x1428]
lea edi, [esi + 0x141c]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
mov ebx, eax
jae 0x403ab4
mov edx, dword [edi + 4]
test edx, edx
je 0x403a07
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x403a0c
mov ecx, 1
test edx, edx
jne 0x403a21
xor eax, eax
jmp 0x403a26
mov dword [esp + 0x10], 0
jmp 0x403b3c
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x48], eax
jge 0x403a32
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov eax, dword [edi + 4]
mov ecx, edi
push ebp
push ebx
push eax
call fcn.00456d00
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], eax
push ecx
push 1
push eax
mov ecx, edi
call fcn.004b5000
mov edx, dword [esp + 0x44]
mov eax, dword [edi + 8]
add edx, 4
mov ecx, edi
push edx
push eax
push ebx
call fcn.00456d00
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.004b4ff0
mov eax, dword [edi + 4]
push eax
call fcn.0051d79a
mov ecx, dword [esp + 0x4c]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, edi
mov dword [edi + 0xc], edx
call fcn.004c0040
lea eax, [ebp + eax*4 + 4]
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
jmp 0x403b3c
mov ecx, eax
sub ecx, ebx
sar ecx, 2
cmp ecx, 1
jae 0x403b01
lea edx, [ebx + 4]
mov ecx, edi
push edx
push eax
push ebx
call fcn.00456d00
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, ebx
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, edi
call fcn.004b5000
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x403b39
mov edx, dword [esp + 0x10]
mov dword [ebx], edx
add ebx, ebp
cmp ebx, eax
jne 0x403af3
jmp 0x403b39
push eax
push eax
add eax, 0xfffffffc
mov ecx, edi
push eax
call fcn.00456d00
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp ebx, eax
je 0x403b24
sub eax, ebp
sub ecx, ebp
cmp eax, ebx
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x403b18
lea ecx, [ebx + 4]
mov eax, ebx
cmp ebx, ecx
je 0x403b39
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, ebp
cmp eax, ecx
jne 0x403b2d
add dword [edi + 8], ebp
mov ecx, esi
call fcn.00403b80
push 0xff
mov ecx, esi
call fcn.004033f0
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc