Function at 0x41adf9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e5e5
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
push ebx
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 0x10
cmp eax, 1
jne 0x41a9d2
mov eax, dword fs:[0x2c]
movzx edx, bx
mov dword [ebp + 8], edx
mov ecx, dword [eax]
mov eax, dword [0x4c2bac]
cmp eax, dword [ecx + 4]
jle 0x41a9a0
push 0x4c2bac
call fcn.0046556f
add esp, 4
cmp dword [0x4c2bac], 0xffffffff
jne 0x41a99d
movaps xmm0, xmmword [0x4af240]
movups xmmword [0x4c2b74], xmm0
push 0x4c2bac
movaps xmm0, xmmword [0x4af2a0]
movups xmmword [0x4c2b84], xmm0
mov dword [0x4c2ba4], 0x9c48
movaps xmm0, xmmword [0x4af270]
movups xmmword [0x4c2b94], xmm0
mov dword [0x4c2ba8], 0xd2
call fcn.00465525
add esp, 4
mov edx, dword [ebp + 8]
xor esi, esi
cmp dword [esi*8 + 0x4c2b74], edx
je 0x41a9b3
inc esi
cmp esi, 7
jb 0x41a9a2
jmp 0x41a9d2
push edx
lea eax, [edi + 0x38]
push str.accelerator_pressed:__d
push eax
call fcn.00443ba0
mov eax, dword [esi*8 + 0x4c2b78]
add esp, 0xc
cmp eax, 0xffffffff
cmovne ebx, eax
add ebx, 0xffffff7f
cmp ebx, 0x57
ja case.0x41a9e8.130
movzx eax, byte [ebx + 0x41b2e0]
jmp dword [eax*4 + 0x41b290]
mov ecx, dword [edi + 0x5c]
push 0
push 0
push 0x404
mov eax, dword [ecx]
call dword [eax + 0xc]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x168]
call fcn.00412db0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 4]
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], vtable.Control.0
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x158]
test eax, eax
jne 0x41aaa9
cmp dword [ebp - 0x160], eax
movzx eax, word [ebp - 0x160]
mov byte [ebp - 0x14c], 1
jne 0x41aa72
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x168]
push edx
push 0x426a20
push ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x41aabe
mov ecx, dword [edi + 0x58]
lea eax, [edi + 0x50]
push eax
call fcn.0041d510
mov ecx, edi
call fcn.00419760
jmp 0x41aabe
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x158]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x28], vtable.Control.0
call fcn.00411d40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.00419ed0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xcc
push 0x412
push dword [edi + 0x270]
call esi
test eax, eax
je 0x41ab78
cmp eax, 4
jne 0x41ab5a
push 1
push 0xcc
push 0x402
push dword [edi + 0x270]
call esi
mov ecx, dword [edi + 0x60]
push 1
call fcn.004571a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xcc
push 0x402
push dword [edi + 0x270]
call esi
mov ecx, dword [edi + 0x60]
push 0
call fcn.004571a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x60]
call fcn.004564e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xce
push 0x412
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41ab78
mov ecx, dword [edi + 0xf0]
call fcn.0044a1e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xcf
push 0x412
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41ab78
mov ecx, dword [edi + 0xf0]
push 1
push 0xa2
call fcn.0044a430
mov ecx, dword [edi + 0xf0]
push 1
push 0x1b
call fcn.0044a430
mov ecx, dword [edi + 0xf0]
push 0
push 0x1b
call fcn.0044a430
mov ecx, dword [edi + 0xf0]
push 0
push 0xa2
call fcn.0044a430
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xd0
push 0x412
push dword [edi + 0x270]
call esi
test eax, eax
je 0x41ab78
lea ecx, [edi + 0x27c]
push 0xd0
cmp eax, 4
jne 0x41acce
call fcn.00426f10
cmp eax, 0xffffffff
je 0x41acaf
push 0x408
push eax
push dword [edi + 0x280]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 1
push 0xd0
push 0x402
push dword [edi + 0x270]
call esi
mov byte [edi + 0x238], 1
push 1
jmp 0x41ad07
call fcn.00426f10
cmp eax, 0xffffffff
je 0x41acea
push 0x400
push eax
push dword [edi + 0x280]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push 0xd0
push 0x402
push dword [edi + 0x270]
call esi
mov byte [edi + 0x238], 0
push 0
mov ecx, dword [edi + 0xf0]
push 0xa2
call fcn.0044a430
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xd1
push 0x412
push dword [edi + 0x270]
call esi
test eax, eax
je 0x41ab78
lea ecx, [edi + 0x27c]
push 0xd1
cmp eax, 4
jne 0x41ad9a
call fcn.00426f10
cmp eax, 0xffffffff
je 0x41ad7b
push 0x408
push eax
push dword [edi + 0x280]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 1
push 0xd1
push 0x402
push dword [edi + 0x270]
call esi
mov byte [edi + 0x239], 1
push 1
jmp 0x41add3
call fcn.00426f10
cmp eax, 0xffffffff
je 0x41adb6
push 0x400
push eax
push dword [edi + 0x280]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push 0xd1
push 0x402
push dword [edi + 0x270]
call esi
mov byte [edi + 0x239], 0
push 0
mov ecx, dword [edi + 0xf0]
push 0xa4
call fcn.0044a430
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xfffffffffffffff0
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1c
test al, 1
je 0x41ae4a
lea eax, [edi + 0x38]
push str.Hide_toolbar
push eax
call fcn.00443ba0
add esp, 8
lea ecx, [edi + 0x27c]
push 0x81
call fcn.00426f10
cmp eax, 0xffffffff
je 0x41ae46
push 0x400
push eax
push dword [edi + 0x280]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
jmp 0x41ae91
cmp byte [edi + 0x2b8], 0
jne 0x41ab78
lea eax, [edi + 0x38]
push str.Show_toolbar
push eax
call fcn.00443ba0
add esp, 8
lea ecx, [edi + 0x27c]
push 0x81
call fcn.00426f10
cmp eax, 0xffffffff
je 0x41ae8f
push 0x408
push eax
push dword [edi + 0x280]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 5
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xd2
push 0x412
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41afbe
mov eax, dword [edi + 0x68]
test eax, eax
je 0x41af19
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41aefb
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41af19
mov ecx, dword [edi + 0x64]
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x41af12
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x68], 0
mov esi, dword [edi + 0x68]
test esi, esi
jne 0x41af6a
push 0x1cc
call fcn.0046523a
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 2
mov ecx, dword [edi + 0x64]
mov edx, dword [ecx]
call dword [edx + 0xc]
push eax
mov ecx, esi
call fcn.0040de50
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x68], eax
test eax, eax
je 0x41af5c
lea edx, [eax + 0x24]
jmp 0x41af5e
xor edx, edx
mov ecx, dword [edi + 0x64]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [edi + 0x68]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41afa9
mov eax, dword [esi + 0x18]
xor ecx, ecx
test eax, eax
je 0x41af7d
mov ecx, dword [eax + 4]
mov eax, dword [esi + 8]
test eax, eax
movzx edx, ax
mov eax, edx
jne 0x41af8c
mov eax, dword [esi + 4]
push esi
push 0x426a20
push ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov byte [esi + 0x1c], 0
jmp 0x41afb0
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [edi + 0x68]
push dword [eax + 0x10]
call fcn.00461850
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x5c]
push 0
push 0
push 0x402
mov eax, dword [ecx]
call dword [eax + 0xc]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0041a110
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x58]
lea ecx, [ebp - 0x14]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
mov bl, byte [esi + 0x1e]
lea ecx, [ebp - 0x14]
call fcn.0044c890
test bl, bl
je 0x41b03d
mov ecx, edi
call fcn.0041a750
mov eax, dword [edi + 0x308]
cmp eax, dword [edi + 0x30c]
je 0x41ab78
mov esi, dword [edi + 0x58]
lea ecx, [ebp - 0x14]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
mov edi, dword [esi + 0x14]
lea ecx, [ebp - 0x14]
call fcn.0044c890
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebx + 0x58]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
mov esi, dword [esi + 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0044c890
imul eax, edi, 0x64
xor ecx, ecx
mov edi, dword [ebx + 0x308]
cdq
idiv esi
mov edx, dword [ebx + 0x30c]
sub edx, edi
sar edx, 2
test edx, edx
je 0x41b0b4
lea esi, [eax + 5]
mov eax, edi
cmp dword [eax], esi
jg 0x41b0b4
inc ecx
add eax, 4
cmp ecx, edx
jb 0x41b0a8
cmp ecx, edx
jb 0x41b0bb
lea ecx, [edx - 1]
push 0x64
push dword [edi + ecx*4]
mov ecx, dword [ebx + 0x58]
call fcn.0041d460
mov esi, dword [ebx + 0x58]
lea ecx, [ebp - 0x14]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
lea ecx, [ebp - 0x14]
mov byte [esi + 0x1e], 0
call fcn.0044c890
mov ecx, dword [ebx + 0x58]
lea eax, [ebx + 0x50]
push eax
call fcn.0041d510
mov ecx, ebx
call fcn.00419760
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x58]
lea ecx, [ebp - 0x14]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
mov bl, byte [esi + 0x1e]
lea ecx, [ebp - 0x14]
call fcn.0044c890
test bl, bl
je 0x41b131
mov ecx, edi
call fcn.0041a750
mov eax, dword [edi + 0x308]
cmp eax, dword [edi + 0x30c]
je 0x41ab78
mov esi, dword [edi + 0x58]
lea ecx, [ebp - 0x14]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
mov edi, dword [esi + 0x14]
lea ecx, [ebp - 0x14]
call fcn.0044c890
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebx + 0x58]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
mov esi, dword [esi + 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0044c890
imul eax, edi, 0x64
cdq
idiv esi
mov edx, dword [ebx + 0x30c]
mov esi, dword [ebx + 0x308]
mov edi, eax
sub edx, esi
sar edx, 2
mov ecx, edx
dec ecx
cmp ecx, edx
jae 0x41b1a2
lea eax, [edi - 5]
cmp dword [esi + ecx*4], eax
jge 0x41b195
xor eax, eax
cmp ecx, edx
push 0x64
cmovbe eax, ecx
push dword [esi + eax*4]
jmp 0x41b0c0
push 0
push 0xd6
push 0x402
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [edi + 0x58]
push 0
push 1
call fcn.0041d9d0
lea ecx, [edi + 0x28]
mov esi, eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0044c870
mov eax, 1
lea ecx, [ebp - 0x14]
cdq
idiv esi
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
call fcn.0044c890
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov esi, dword [ebx + 0x58]
lea eax, [esi + 0x28]
push eax
call fcn.0044c870
lea ecx, [ebp - 0x24]
jmp 0x41b0da
mov ecx, edi
call fcn.0041a750
jmp 0x41ab78
cmp byte [edi + 0x2b8], 0
lea eax, [edi + 0x38]
je 0x41b247
push str.Switch_to_windowed_mode
push eax
call fcn.00443ba0
add esp, 8
mov ecx, edi
call fcn.0041b660
jmp 0x41ab78
push str.Switch_to_full_screen_mode
push eax
call fcn.00443ba0
add esp, 8
mov ecx, edi
call fcn.0041b340
jmp 0x41ab78
mov ecx, dword [edi + 0x5c]
push 0
push 0
push 0x403
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41ab78
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8