Function at 0x4fed50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004ff5cc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x4ff4f7
mov eax, dword [0x50cc98]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4ff4f7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
jne 0x4ff4f7
cmp dword [ebp - 0x44], 0
je 0x4ff4f7
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x44]
push eax
call fcn.004075e4
test eax, eax
je 0x4ff4f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x54], 0
jne 0x4ff4f7
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4e7598]
call fcn.00403a8c
test al, al
je 0x4fef3d
mov eax, dword [ebx + 0x54]
mov ax, word [eax + 0x4e]
and ax, 0x800
cmp ax, 0x800
je 0x4ff4f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004e9768
test al, al
jne 0x4ff4f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x18], 0
jne 0x4ff4f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x78], 0
je 0x4ff4f7
mov eax, dword [0x50ce50]
mov eax, dword [eax]
cmp word [eax + 0x8c], 1
je 0x4ff4f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x1c], 8
jne 0x4fee5a
mov edx, dword [eax + 0x22c]
test byte [edx + 0x1c], 8
je 0x4fee66
xor edx, edx
call fcn.004fad1c
jmp 0x4ff4f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
call fcn.004453d4
push eax
call fcn.00407674
test eax, eax
jne 0x4feebb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x20c]
test ebx, ebx
je 0x4fee99
cmp ebx, 0x8000
jne 0x4feebb
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.00407844
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x35], 1
jmp 0x4ff4f7
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
push 0xffffffffffffffec
mov eax, dword [ebp - 0x44]
push eax
call fcn.004075d4
and eax, 8
cmp eax, 8
jne 0x4feef6
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
call fcn.0040780c
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x4fef17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x22f], 3
jne 0x4fef12
xor eax, eax
mov dword [ebp - 0x3c], eax
jmp 0x4fef17
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
push eax
call fcn.0040767c
test eax, eax
je 0x4fef36
call fcn.004e9610
test al, al
je 0x4fef36
mov dword [ebp - 0x1c], 5
jmp 0x4fef9f
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x4fef9f
mov eax, dword [ebp - 0x44]
push eax
call fcn.00407674
test eax, eax
je 0x4ff4f7
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
push 0xffffffffffffffec
mov eax, dword [ebp - 0x44]
push eax
call fcn.004075d4
mov ebx, eax
and ebx, 8
cmp ebx, 8
jne 0x4fef95
call fcn.00407474
cmp eax, dword [ebp - 0x44]
jne 0x4fef8c
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
call fcn.0040780c
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x4fef9a
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.004ffc4c
test eax, 0x1180
jne 0x4fefbc
mov eax, dword [0x50ce84]
cmp byte [eax], 0
je 0x4ff11e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x35], 0
je 0x4fefd0
mov eax, dword [ebp - 4]
call fcn.004ff70c
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4e7598]
call fcn.00403a8c
test al, al
je 0x4feffd
mov edx, ebx
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
call fcn.004e9188
jmp 0x4ff136
mov eax, dword [ebp - 0x44]
push eax
call fcn.004075cc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040723c
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4ff117
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x44]
call fcn.004c58bc
push 0xcc0020
mov esi, dword [ebp - 0x50]
push esi
mov ebx, dword [ebp - 0x54]
push ebx
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004e110c
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004e10f8
push eax
mov eax, dword [ebp - 4]
call fcn.004ff578
add eax, esi
push eax
mov eax, dword [ebp - 4]
call fcn.004ff540
add eax, ebx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
call fcn.004284b8
call fcn.00423fec
push eax
call fcn.0040704c
push 0
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004e110c
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004ff578
add eax, dword [ebp - 0x50]
add ebx, eax
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.004e10f8
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004ff540
add eax, dword [ebp - 0x54]
add ebx, eax
push ebx
mov eax, dword [ebp - 4]
call fcn.004ff578
add eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.004ff540
add eax, dword [ebp - 0x54]
pop edx
pop ecx
call fcn.00406b5c
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov cl, 0xff
call fcn.004b5aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff136
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040722c
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x44]
push eax
call fcn.0040774c
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x35], 0
je 0x4ff136
mov eax, dword [ebp - 4]
call fcn.004ff70c
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4e7598]
call fcn.00403a8c
test al, al
je 0x4ff176
cmp byte [ebx + 0x1ec], 0
je 0x4ff176
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004ff624
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.004e94e4
add ebx, eax
add ebx, 4
mov dword [ebp - 0x14], ebx
jmp 0x4ff181
mov eax, dword [ebp - 4]
call fcn.004ff578
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
call fcn.004e943c
push eax
mov eax, dword [ebp - 4]
call fcn.004e94c4
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004ff624
add ebx, dword [ebp - 0x74]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
cmp dword [ebp - 0x3c], 0
jne 0x4ff206
mov eax, dword [ebp - 0x44]
push eax
call fcn.00407654
test eax, eax
jne 0x4ff1f0
mov eax, dword [ebp - 4]
call fcn.004ffc4c
and eax, 1
cmp eax, 1
jne 0x4ff200
push 3
mov eax, dword [ebp - 0x44]
push eax
call fcn.0040755c
mov dword [ebp - 0x3c], eax
jmp 0x4ff206
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov ebx, 0x610
cmp byte [ebp - 5], 0
jne 0x4ff227
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp esi, dword [eax + 0x48]
jne 0x4ff227
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp edi, dword [eax + 0x4c]
je 0x4ff22d
mov byte [ebp - 0x35], 1
jmp 0x4ff234
or ebx, 1
mov byte [ebp - 0x35], 0
cmp byte [ebp - 5], 0
jne 0x4ff23d
or ebx, 8
lea ecx, [ebp - 0xe]
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x18]
call fcn.00406b78
call fcn.004c6464
and al, byte [ebp - 0x35]
je 0x4ff4cb
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x4ff4cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x34]
xor edx, edx
xor eax, eax
call fcn.00406b78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x4e7598]
call fcn.00403a8c
test al, al
je 0x4ff2db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4ff2db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
mov al, byte [eax + 0x2e1]
mov byte [ebp - 0x3e], al
jmp 0x4ff2e1
mov al, byte [ebp - 6]
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3d], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp esi, dword [eax + 0x48]
jne 0x4ff2fd
cmp edi, dword [eax + 0x4c]
je 0x4ff316
push esi
sub edi, dword [ebp - 0x1c]
push edi
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x84]
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ffb24
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.00407824
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov eax, esi
mov edx, dword [0x4e7598]
call fcn.00403a8c
test al, al
je 0x4ff3c5
mov eax, dword [esi + 0x22c]
cmp byte [eax + 0x22b], 2
jne 0x4ff3c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov esi, dword [eax + 0x40]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.004ff624
sub edi, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
call fcn.004453d4
mov cl, 1
mov edx, dword [ebp - 4]
call fcn.004e943c
mov edx, edi
sub edx, eax
sub edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, esi
call fcn.0043e384
push 0
call fcn.004074bc
mov dword [ebp - 0x24], eax
push 2
lea eax, [ebp - 0x40]
push eax
push 0x1fffffff
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x24]
push eax
push 0
call fcn.0040774c
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.004075d4
and eax, 0x10000000
cmp eax, 0x10000000
je 0x4ff4a5
cmp byte [ebp - 6], 0
jne 0x4ff45f
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call fcn.004075d4
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call fcn.004077fc
push 0x253
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.0040780c
cmp byte [ebp - 6], 0
jne 0x4ff4f0
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call fcn.004075d4
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call fcn.004077fc
jmp 0x4ff4f0
or ebx, 1
or ebx, 2
push ebx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.0040780c
jmp 0x4ff4f0
or ebx, 1
push ebx
push 0
push 0
mov eax, dword [ebp - 0xa]
push eax
mov eax, dword [ebp - 0xe]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.0040780c
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret