Function at 0x403560
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x56bca8]
sub esp, 0x30
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x40358d
call fcn.00422810
mov eax, dword [eax + 4]
push 0
push 0x77fc
push 0x405
push eax
call dword [0x523774]
mov ecx, dword [esp + 0x44]
lea edi, [esi + 0x28]
mov dword [esi + 0x8f8], ecx
mov edx, dword [0x58bcc8]
push 1
push str.ACC_BACK.PNG
push edx
mov ecx, edi
call fcn.00492cb0
mov eax, dword [0x58bcc8]
push 1
push str.ACC_ENABLE.PNG
push eax
lea ecx, [esi + 0x25c]
call fcn.00492cb0
mov ecx, dword [0x58bcc8]
push 1
push 0x537404
push ecx
lea ecx, [esi + 0x490]
call fcn.00492cb0
mov edx, dword [0x58bcc8]
push 1
push 0x5373e0
push edx
lea ecx, [esi + 0x6c4]
call fcn.00492cb0
mov ecx, edi
call fcn.004939d0
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, esi
mov ebx, eax
add ebp, 0x3e
sub edi, 5
call fcn.004032b0
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.0050a7c0
mov edi, eax
push 5
push edi
call dword [0x523884]
push 0
push edi
call fcn.004e5f40
mov ecx, eax
call fcn.00505940
call fcn.00422810
push 0
push 0x77ed
push 0x405
mov ecx, dword [eax + 4]
push ecx
call dword [0x523774]
mov edx, dword [0x5233cc]
push edx
push 0x478
call fcn.0051c565
add esp, 8
test eax, eax
je 0x403836
push esi
mov ecx, eax
call fcn.004a0a80
test eax, eax
mov dword [esp + 0x10], eax
je 0x4038d3
push 3
push 2
push 1
push 0
push str.close_normal.PNG
mov ecx, eax
call fcn.004a0c00
mov ecx, dword [esp + 0x10]
push 2
call fcn.004a0bd0
mov ecx, dword [esp + 0x10]
push 0x6e
call fcn.004a0e80
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004a0e70
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004a10b0
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.004a0d90
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 0x403843
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x403797
sub eax, ecx
sar eax, 2
cmp eax, 1
mov dword [esp + 0x44], eax
ja 0x40379f
mov dword [esp + 0x44], 1
mov ecx, edi
call fcn.00470410
add eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jns 0x4037b2
xor eax, eax
shl eax, 2
push eax
call fcn.0051c5a0
mov ecx, dword [edi + 4]
add esp, 4
mov dword [esp + 0x48], eax
push eax
push ebp
push ecx
mov ecx, edi
call fcn.0042b060
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push 1
push eax
mov dword [esp + 0x50], eax
call fcn.0042b090
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 8]
add eax, 4
push eax
push ecx
push ebp
mov ecx, edi
call fcn.0042b060
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
push edx
push eax
mov ecx, edi
call fcn.004b4470
mov ecx, dword [edi + 4]
push ecx
call fcn.0051c55a
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.00470410
lea ecx, [ebp + eax*4 + 4]
mov dword [edi + 4], ebp
mov dword [edi + 8], ecx
jmp 0x4038d3
mov dword [esp + 0x10], 0
jmp 0x4038d3
mov edx, eax
sub edx, ebp
sar edx, 2
cmp edx, 1
jae 0x403893
lea ecx, [ebp + 4]
push ecx
push eax
push ebp
mov ecx, edi
call fcn.0042b060
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.0042b090
mov ecx, dword [edi + 8]
mov eax, ebp
cmp ebp, ecx
je 0x4038cf
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x403884
jmp 0x4038cf
push eax
push eax
add eax, 0xfffffffc
mov ecx, edi
push eax
call fcn.0042b060
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp ebp, eax
je 0x4038b9
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, ebp
mov dword [ecx], edx
jne 0x4038aa
lea ecx, [ebp + 4]
mov eax, ebp
cmp ebp, ecx
je 0x4038cf
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4038c2
add dword [edi + 8], 4
mov eax, dword [0x5233cc]
push eax
push 0x478
call fcn.0051c565
add esp, 8
test eax, eax
je 0x4039e4
push esi
mov ecx, eax
call fcn.004a0a80
test eax, eax
mov dword [esp + 0x10], eax
je 0x403b0c
push 5
mov ecx, eax
call fcn.004a0bd0
push 0xc42b
call fcn.0049b200
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
call fcn.004a0be0
mov ebp, 4
push ebp
call fcn.004f7ea0
mov ecx, eax
call fcn.004f9340
mov ecx, dword [esp + 0x10]
push eax
call fcn.004a0df0
mov ecx, dword [esp + 0x10]
push 0xf38e2a
push 0xf38e2a
push 0xf38e2a
push 0xf38e2a
call fcn.004a0dc0
mov ecx, dword [esp + 0x10]
push 0x6f
call fcn.004a0e80
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004a0e70
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.004a0d90
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 0x403a84
mov edx, dword [edi + 4]
test edx, edx
je 0x4039d7
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4039dc
mov ecx, 1
test edx, edx
jne 0x4039f1
xor eax, eax
jmp 0x4039f6
mov dword [esp + 0x10], 0
jmp 0x403b0c
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x48], eax
jge 0x403a02
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0051c5a0
add esp, 4
mov ebp, eax
mov eax, dword [edi + 4]
mov ecx, edi
push ebp
push ebx
push eax
call fcn.0042b060
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], eax
push ecx
push 1
push eax
mov ecx, edi
call fcn.0042b090
mov edx, dword [esp + 0x44]
mov eax, dword [edi + 8]
add edx, 4
mov ecx, edi
push edx
push eax
push ebx
call fcn.0042b060
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.004b4470
mov eax, dword [edi + 4]
push eax
call fcn.0051c55a
mov ecx, dword [esp + 0x4c]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, edi
mov dword [edi + 0xc], edx
call fcn.00470410
lea eax, [ebp + eax*4 + 4]
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
jmp 0x403b0c
mov ecx, eax
sub ecx, ebx
sar ecx, 2
cmp ecx, 1
jae 0x403ad1
lea edx, [ebx + 4]
mov ecx, edi
push edx
push eax
push ebx
call fcn.0042b060
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.0042b090
mov eax, dword [edi + 8]
cmp ebx, eax
je 0x403b09
mov edx, dword [esp + 0x10]
mov dword [ebx], edx
add ebx, ebp
cmp ebx, eax
jne 0x403ac3
jmp 0x403b09
push eax
push eax
add eax, 0xfffffffc
mov ecx, edi
push eax
call fcn.0042b060
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp ebx, eax
je 0x403af4
sub eax, ebp
sub ecx, ebp
cmp eax, ebx
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x403ae8
lea ecx, [ebx + 4]
mov eax, ebx
cmp ebx, ecx
je 0x403b09
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, ebp
cmp eax, ecx
jne 0x403afd
add dword [edi + 8], ebp
mov ecx, esi
call fcn.00403b50
push 0xff
mov ecx, esi
call fcn.004033c0
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc