Function at 0x499fed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x18
mov ecx, dword [eax]
mov eax, dword [0x4d306c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push edi
cmp eax, dword [ecx + 4]
jle 0x49a036
mov esi, 0x4d306c
push esi
call fcn.00420294
cmp dword [0x4d306c], 0xffffffff
pop ecx
jne 0x49a036
push 0x11
call ebx
push esi
mov dword [0x4d3070], eax
call fcn.0042024a
pop ecx
push dword [ebp + 8]
mov ecx, 0x4d18b0
call fcn.00419bff
mov ecx, dword [0x4d1910]
mov edi, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
cmp byte [esi + 0x3a], 0
je 0x49a073
cmp dword [esi + 0x19c], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
je 0x49a073
push 0xf
call ebx
add dword [esi + 0x48], eax
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
cmp edi, dword [0x4d3070]
jle 0x49a094
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add ebx, eax
mov dword [ebp - 8], ebx
cmp dword [esi + 0x19c], 0
je 0x49a0aa
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub ebx, eax
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], 0
jle 0x49a37a
test ebx, ebx
jle 0x49a37a
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x49a37a
test edi, edi
jle 0x49a37a
cmp dword [ebp + 0xc], 1
je 0x49a37a
push 3
pop ebx
mov dword [ebp - 0x14], ebx
cmp dword [0x4d1934], ebx
jl 0x49a365
mov eax, dword [0x4d1924]
mov eax, dword [eax + ebx*4]
mov ebx, dword [eax]
test ebx, ebx
je 0x49a352
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 4]
jne 0x49a352
cmp dword [ebx], 0
je 0x49a352
movzx eax, word [ebx + 0x86]
mov dword [ebp - 0x10], eax
movsx eax, word [ebx + 0x88]
imul eax, ecx
cdq
idiv dword [ebp - 4]
mov edi, eax
movsx eax, word [ebx + 0x8a]
imul eax, dword [ebp + 0x14]
cdq
idiv dword [ebp - 8]
mov ecx, eax
movsx eax, word [ebx + 0x8c]
imul eax, dword [ebp + 0x10]
cdq
idiv dword [ebp - 4]
mov dword [ebp + 0xc], eax
movsx eax, word [ebx + 0x8e]
imul eax, dword [ebp + 0x14]
cdq
idiv dword [ebp - 8]
movzx edx, word [ebx + 0x86]
mov dword [ebp + 8], eax
test dx, dx
je 0x49a2e1
test edx, 0x100
je 0x49a1d9
movsx esi, word [ebx + 0x8c]
mov dword [ebp + 0xc], esi
mov esi, dword [ebp - 0xc]
test dl, 6
jne 0x49a1d9
mov eax, dword [ebp + 0x10]
test dl, 8
je 0x49a1a8
sub eax, dword [ebp - 4]
cdq
sub eax, edx
mov edi, eax
movsx eax, word [ebx + 0x88]
sar edi, 1
add edi, eax
jmp 0x49a1cf
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x49a1cf
movsx edx, word [ebx + 0x88]
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
sub eax, edx
sub eax, dword [ebp + 0xc]
imul eax, edi
cdq
idiv dword [ebp - 4]
sub edi, eax
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx edx, word [ebx + 0x86]
test edx, 0x200
je 0x49a20d
movsx eax, word [ebx + 0x8e]
mov dword [ebp + 8], eax
test dl, 0x60
jne 0x49a20d
mov eax, dword [ebp + 0x14]
test dl, dl
jns 0x49a253
sub eax, dword [ebp - 8]
cdq
sub eax, edx
mov ecx, eax
movsx eax, word [ebx + 0x8a]
sar ecx, 1
add ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
and edx, 2
mov dword [ebp - 0x18], edx
je 0x49a21f
movsx edi, word [ebx + 0x88]
test byte [ebp - 0x10], 4
je 0x49a294
cmp word [ebp - 0x18], 0
movsx esi, word [ebx + 0x88]
je 0x49a27f
movsx edx, word [ebx + 0x8c]
mov eax, dword [ebp + 8]
add edx, esi
mov dword [ebp + 0xc], edx
sub dword [ebp + 0xc], edi
mov edx, dword [ebp - 4]
sub dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x10]
add dword [ebp + 0xc], edx
jmp 0x49a291
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x49a20a
movsx edx, word [ebx + 0x8a]
mov eax, dword [ebp - 8]
sub eax, edx
mov ecx, dword [ebp + 0x14]
sub eax, dword [ebp + 8]
imul eax, dword [ebp + 0x14]
cdq
idiv dword [ebp - 8]
sub ecx, eax
mov eax, dword [ebp + 8]
sub ecx, eax
jmp 0x49a20d
movsx edi, word [ebx + 0x8c]
add edi, esi
sub edi, dword [ebp + 0xc]
sub edi, dword [ebp - 4]
add edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
and edx, 0x20
mov dword [ebp + 8], edx
je 0x49a2a6
movsx ecx, word [ebx + 0x8a]
test byte [ebp - 0x10], 0x40
je 0x49a2e1
cmp word [ebp + 8], 0
movsx esi, word [ebx + 0x8a]
je 0x49a2cd
movsx eax, word [ebx + 0x8e]
add eax, esi
sub eax, ecx
sub eax, dword [ebp - 8]
add eax, dword [ebp + 0x14]
jmp 0x49a2de
movsx ecx, word [ebx + 0x8e]
add ecx, esi
sub ecx, eax
sub ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x14]
mov esi, dword [ebp - 0xc]
push 0
push eax
push dword [ebp + 0xc]
push ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_MoveWindow]
mov al, byte [ebx + 0x90]
test al, al
jne 0x49a311
push 0xffff
push 0
push 0x142
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x49a34f
cmp al, 0x16
jne 0x49a34f
test byte [ebx + 0x92], 0x20
jne 0x49a34f
push 0
push dword [ebx + 0x34]
push 0x469
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebx + 0x93]
cmp al, 0xff
je 0x49a34f
movzx eax, al
cmp eax, dword [esi + 0x190]
je 0x49a34f
push 0
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [0x4d1934]
jle 0x49a0eb
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esi + 0x184], 1
jmp 0x49a397
mov eax, dword [ebp + 0x10]
movzx ecx, di
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10